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 commit16c0cc296e
. * Revert "chore: remove runtime/config from package json" This reverts commitc1b4678998
. * refactor: types null * fix: exclude config.ts from tsc * chore: update consts * chore: comment on intellisense
This commit is contained in:
parent
c9a1111275
commit
9667ee990c
4 changed files with 10 additions and 6 deletions
5
.changeset/breezy-seals-begin.md
Normal file
5
.changeset/breezy-seals-begin.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@astrojs/db": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove @astrojs/runtime/config suggestion for astro:db configuration helpers.
|
|
@ -20,8 +20,7 @@
|
||||||
"types": "./dist/runtime/index.d.ts",
|
"types": "./dist/runtime/index.d.ts",
|
||||||
"import": "./dist/runtime/index.js"
|
"import": "./dist/runtime/index.js"
|
||||||
},
|
},
|
||||||
"./runtime/config": {
|
"./dist/runtime/config.js": {
|
||||||
"types": "./dist/runtime/config.d.ts",
|
|
||||||
"import": "./dist/runtime/config.js"
|
"import": "./dist/runtime/config.js"
|
||||||
},
|
},
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
|
@ -36,9 +35,6 @@
|
||||||
],
|
],
|
||||||
"runtime": [
|
"runtime": [
|
||||||
"./dist/runtime/index.d.ts"
|
"./dist/runtime/index.d.ts"
|
||||||
],
|
|
||||||
"runtime/config": [
|
|
||||||
"./dist/runtime/config.d.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,9 @@ export const PACKAGE_NAME = JSON.parse(
|
||||||
).name;
|
).name;
|
||||||
|
|
||||||
export const RUNTIME_IMPORT = JSON.stringify(`${PACKAGE_NAME}/runtime`);
|
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';
|
export const DB_TYPES_FILE = 'db-types.d.ts';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.base.json",
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
|
"exclude": ["src/runtime/config.ts"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist"
|
"outDir": "./dist"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue