mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix Svelte editor tooling not working under relaxed TypeScripts projects (#10244)
* fix(svelte): Add TypeScript as a peer dep * Update .changeset/gold-baboons-drum.md
This commit is contained in:
parent
6bf102aebe
commit
dbb0d0bd28
4 changed files with 10 additions and 14 deletions
5
.changeset/gold-baboons-drum.md
Normal file
5
.changeset/gold-baboons-drum.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@astrojs/svelte": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Adds TypeScript as a required peer dependency as it is required for Svelte's editor tooling to work correctly.
|
|
@ -81,13 +81,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"svelte2tsx": {
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"typescript": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rehype-pretty-code": {
|
"rehype-pretty-code": {
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"shiki": {
|
"shiki": {
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
||||||
"svelte2tsx": "^0.6.25"
|
"svelte2tsx": "^0.6.27"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "workspace:*",
|
"astro": "workspace:*",
|
||||||
|
@ -53,7 +53,8 @@
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"astro": "^4.0.0",
|
"astro": "^4.0.0",
|
||||||
"svelte": "^4.0.0 || ^5.0.0-next.56"
|
"svelte": "^4.0.0 || ^5.0.0-next.56",
|
||||||
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.14.1"
|
"node": ">=18.14.1"
|
||||||
|
|
|
@ -8,7 +8,7 @@ overrides:
|
||||||
organize-imports-cli>ts-morph: ^19.0.0
|
organize-imports-cli>ts-morph: ^19.0.0
|
||||||
tsconfig-resolver>type-fest: 3.0.0
|
tsconfig-resolver>type-fest: 3.0.0
|
||||||
|
|
||||||
packageExtensionsChecksum: 2d0a8c56e33c7d11bb9ef3c997d67c33
|
packageExtensionsChecksum: 43e9b7451c9943c617aef017ec172155
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
|
@ -4804,7 +4804,7 @@ importers:
|
||||||
specifier: ^3.0.0
|
specifier: ^3.0.0
|
||||||
version: 3.0.1(svelte@4.2.8)(vite@5.1.2)
|
version: 3.0.1(svelte@4.2.8)(vite@5.1.2)
|
||||||
svelte2tsx:
|
svelte2tsx:
|
||||||
specifier: ^0.6.25
|
specifier: ^0.6.27
|
||||||
version: 0.6.27(svelte@4.2.8)(typescript@5.2.2)
|
version: 0.6.27(svelte@4.2.8)(typescript@5.2.2)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
astro:
|
astro:
|
||||||
|
@ -15678,9 +15678,6 @@ packages:
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0
|
svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0
|
||||||
typescript: ^4.9.4 || ^5.0.0
|
typescript: ^4.9.4 || ^5.0.0
|
||||||
peerDependenciesMeta:
|
|
||||||
typescript:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
dependencies:
|
||||||
dedent-js: 1.0.1
|
dedent-js: 1.0.1
|
||||||
pascal-case: 3.1.2
|
pascal-case: 3.1.2
|
||||||
|
|
Loading…
Reference in a new issue