Skip to content

Commit

Permalink
Fix Svelte editor tooling not working under relaxed TypeScripts proje…
Browse files Browse the repository at this point in the history
…cts (#10244)

* fix(svelte): Add TypeScript as a peer dep

* Update .changeset/gold-baboons-drum.md
  • Loading branch information
Princesseuh authored Feb 27, 2024
1 parent 6bf102a commit dbb0d0b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-baboons-drum.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@
}
}
},
"svelte2tsx": {
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
}
},
"rehype-pretty-code": {
"peerDependenciesMeta": {
"shiki": {
Expand Down
5 changes: 3 additions & 2 deletions packages/integrations/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"svelte2tsx": "^0.6.25"
"svelte2tsx": "^0.6.27"
},
"devDependencies": {
"astro": "workspace:*",
Expand All @@ -53,7 +53,8 @@
},
"peerDependencies": {
"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": {
"node": ">=18.14.1"
Expand Down
7 changes: 2 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dbb0d0b

Please sign in to comment.