0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

fix: remove runtime/config suggestion for db config exports (#10391)

* chore: remove runtime/config from package json

* fix: use relative path to dist

* chore: changeset

* Revert "fix: use relative path to dist"

This reverts commit 16c0cc296e.

* Revert "chore: remove runtime/config from package json"

This reverts commit c1b4678998.

* refactor: types null

* fix: exclude config.ts from tsc

* chore: update consts

* chore: comment on intellisense
This commit is contained in:
Ben Holmes 2024-03-11 15:44:58 -04:00 committed by GitHub
parent c9a1111275
commit 9667ee990c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 6 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/db": patch
---
Remove @astrojs/runtime/config suggestion for astro:db configuration helpers.

View file

@ -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"
]
}
},

View file

@ -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';

View file

@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src"],
"exclude": ["src/runtime/config.ts"],
"compilerOptions": {
"outDir": "./dist"
}