0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix: use relative path to dist

This commit is contained in:
bholmesdev 2024-03-11 14:23:56 -04:00
parent c1b4678998
commit 16c0cc296e

View file

@ -5,8 +5,11 @@ export const PACKAGE_NAME = JSON.parse(
).name;
export const RUNTIME_IMPORT = JSON.stringify(`${PACKAGE_NAME}/runtime`);
// Use `dist` path. Not exposed as a public API.
export const RUNTIME_CONFIG_IMPORT = JSON.stringify(`${PACKAGE_NAME}/dist/runtime/config.js`);
// Use `dist` path for config helpers. Not exposed as a public API.
const RUNTIME_DIR = new URL('../../dist/runtime/', import.meta.url);
export const RUNTIME_CONFIG_IMPORT = JSON.stringify(new URL('./config.js', RUNTIME_DIR));
export const DB_TYPES_FILE = 'db-types.d.ts';