refactor: move internals -> content dir
This commit is contained in:
parent
47645d8dfd
commit
9854fdec24
6 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
import { z } from 'zod';
|
||||
import { getErrorMsg, parseEntryData } from 'astro/content-internals';
|
||||
import { getErrorMsg, parseEntryData } from 'astro/content/internals';
|
||||
|
||||
const defaultSchemaFileResolved = { schema: { parse: (mod) => mod } };
|
||||
/** Used to stub out `schemaMap` entries that don't have a `~schema.ts` file */
|
|
@ -42,7 +42,7 @@
|
|||
"types": "./config.d.ts",
|
||||
"default": "./config.mjs"
|
||||
},
|
||||
"./content-internals": "./dist/content-internals/index.js",
|
||||
"./content/internals": "./dist/content/internals.js",
|
||||
"./app": "./dist/core/app/index.js",
|
||||
"./app/node": "./dist/core/app/node.js",
|
||||
"./client/*": "./dist/runtime/client/*",
|
||||
|
|
|
@ -14,7 +14,7 @@ type Dirs = {
|
|||
generatedInputDir: URL;
|
||||
};
|
||||
|
||||
const CONTENT_BASE = 'content';
|
||||
const CONTENT_BASE = 'content-generated';
|
||||
const CONTENT_FILE = CONTENT_BASE + '.mjs';
|
||||
const CONTENT_TYPES_FILE = CONTENT_BASE + '.d.ts';
|
||||
|
||||
|
@ -29,7 +29,7 @@ export function astroContentPlugin({
|
|||
const dirs: Dirs = {
|
||||
cacheDir: new URL('./.astro/', root),
|
||||
contentDir: new URL('./content/', srcDir),
|
||||
generatedInputDir: new URL('../../content-reference/', import.meta.url),
|
||||
generatedInputDir: new URL('../../', import.meta.url),
|
||||
};
|
||||
let contentDirExists = false;
|
||||
|
|
@ -20,7 +20,7 @@ import astroScriptsPlugin from '../vite-plugin-scripts/index.js';
|
|||
import astroScriptsPageSSRPlugin from '../vite-plugin-scripts/page-ssr.js';
|
||||
import { createCustomViteLogger } from './errors/dev/index.js';
|
||||
import { resolveDependency } from './util.js';
|
||||
import { astroContentPlugin } from '../vite-plugin-content/index.js';
|
||||
import { astroContentPlugin } from '../content/vite-plugin.js';
|
||||
|
||||
interface CreateViteOptions {
|
||||
settings: AstroSettings;
|
||||
|
|
Loading…
Reference in a new issue