From c1b46789983384ca66172b404a74440784888514 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 11 Mar 2024 14:06:03 -0400 Subject: [PATCH] chore: remove runtime/config from package json --- packages/db/package.json | 7 ------- packages/db/src/core/consts.ts | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/db/package.json b/packages/db/package.json index fa10683d6873..744b99e1aad6 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 c0f5e2058274..5b6003e1b74c 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';