Skip to content

Commit

Permalink
chore: bump svelte2tsx dependency (#11619)
Browse files Browse the repository at this point in the history
* chore: bump svelte2tsx dependency

...to support generating types for `.svelte.ts` files

Related: sveltejs/language-tools#2241

* peer dep 5.0

* lint

---------

Co-authored-by: Rich Harris <[email protected]>
  • Loading branch information
dummdidumm and Rich-Harris authored Jan 12, 2024
1 parent e54d56e commit 6f9526b
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-cycles-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/package': patch
---

chore: bump svelte2tsx dependency to support generating types for `.svelte.js/ts` files
4 changes: 2 additions & 2 deletions packages/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"kleur": "^4.1.5",
"sade": "^1.8.1",
"semver": "^7.5.4",
"svelte2tsx": "~0.6.27"
"svelte2tsx": "~0.7.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.1",
Expand All @@ -27,7 +27,7 @@
"uvu": "^0.5.6"
},
"peerDependencies": {
"svelte": "^3.44.0 || ^4.0.0"
"svelte": "^3.44.0 || ^4.0.0 || ^5.0.0-next.1"
},
"bin": {
"svelte-package": "svelte-package.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const foo: 'bar';
export { x } from "./runes.svelte.js";
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const foo = 'bar';
export { x } from './runes.svelte.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x: true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x = true;
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const foo = 'bar';
export { x } from './runes.svelte.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x = true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const x = true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x = true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x = true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const x = true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x = true;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const x = true;
8 changes: 4 additions & 4 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 6f9526b

Please sign in to comment.