diff --git a/.changeset/breezy-seals-begin.md b/.changeset/breezy-seals-begin.md new file mode 100644 index 000000000000..951f6272be32 --- /dev/null +++ b/.changeset/breezy-seals-begin.md @@ -0,0 +1,5 @@ +--- +"@astrojs/db": patch +--- + +Remove @astrojs/runtime/config suggestion for astro:db configuration helpers. diff --git a/packages/db/package.json b/packages/db/package.json index fa10683d6873..d7f44aa8cc86 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -20,8 +20,7 @@ "types": "./dist/runtime/index.d.ts", "import": "./dist/runtime/index.js" }, - "./runtime/config": { - "types": "./dist/runtime/config.d.ts", + "./dist/runtime/config.js": { "import": "./dist/runtime/config.js" }, "./package.json": "./package.json" @@ -36,9 +35,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..43279f6aa778 100644 --- a/packages/db/src/core/consts.ts +++ b/packages/db/src/core/consts.ts @@ -5,7 +5,9 @@ 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`); +// Exposed without type definitions +// to avoid duplicate suggestions in Intellisense +export const RUNTIME_CONFIG_IMPORT = JSON.stringify(`${PACKAGE_NAME}/dist/runtime/config.js`); export const DB_TYPES_FILE = 'db-types.d.ts'; diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 18443cddf207..96407d1d114a 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.base.json", "include": ["src"], + "exclude": ["src/runtime/config.ts"], "compilerOptions": { "outDir": "./dist" }