diff --git a/packages/db/package.json b/packages/db/package.json index fa10683d68..744b99e1aa 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -20,10 +20,6 @@ "types": "./dist/runtime/index.d.ts", "import": "./dist/runtime/index.js" }, - "./runtime/config": { - "types": "./dist/runtime/config.d.ts", - "import": "./dist/runtime/config.js" - }, "./package.json": "./package.json" }, "typesVersions": { @@ -36,9 +32,6 @@ ], "runtime": [ "./dist/runtime/index.d.ts" - ], - "runtime/config": [ - "./dist/runtime/config.d.ts" ] } }, diff --git a/packages/db/src/core/consts.ts b/packages/db/src/core/consts.ts index c0f5e20582..5b6003e1b7 100644 --- a/packages/db/src/core/consts.ts +++ b/packages/db/src/core/consts.ts @@ -5,7 +5,8 @@ export const PACKAGE_NAME = JSON.parse( ).name; export const RUNTIME_IMPORT = JSON.stringify(`${PACKAGE_NAME}/runtime`); -export const RUNTIME_CONFIG_IMPORT = JSON.stringify(`${PACKAGE_NAME}/runtime/config`); +// Use `dist` path. Not exposed as a public API. +export const RUNTIME_CONFIG_IMPORT = JSON.stringify(`${PACKAGE_NAME}/dist/runtime/config.js`); export const DB_TYPES_FILE = 'db-types.d.ts';