Skip to content

Commit

Permalink
fix: update package.json to support Svelte legacy tooling
Browse files Browse the repository at this point in the history
- REF https://kit.svelte.dev/docs/packaging#anatomy-of-a-package-json-svelte
- Downgrade to Svelte 3.59.2 because 4.0.0 exports the package using a type `SvelteComponent` which causes the types to break when used in Svelte 3.x — REF sveltejs/svelte#8512

Fixes #68
  • Loading branch information
fmaclen committed Nov 10, 2023
1 parent 8e6b3e2 commit 44f8e17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 143 deletions.
150 changes: 8 additions & 142 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"!dist/**/*.spec.*"
],
"peerDependencies": {
"svelte": "^4.0.0"
"svelte": "^3.59.2"
},
"devDependencies": {
"@playwright/test": "^1.39.0",
Expand All @@ -49,6 +49,8 @@
"typescript": "^5.0.0",
"vite": "^4.4.2"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"description": "A form input that converts numbers to currencies as you type in localized formats",
"keywords": [
Expand Down

0 comments on commit 44f8e17

Please sign in to comment.