Skip to content

Commit

Permalink
fix: make svelte a dependency, its type definitions are needed in T…
Browse files Browse the repository at this point in the history
…ypeScript projects (see #19)
  • Loading branch information
josdejong committed Jul 7, 2022
1 parent 7ad8e95 commit acb3acf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Install via npm:
npm install svelte-jsoneditor
```

Remark: you may notice that `svelte` is a dependency in the project and ask yourself why. This is necessary when using it in a Svelte project or when using it in a TypeScript project. In the latter case, the project depends on types that are defined in the `svelte` package.

## Use

### Examples
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"lodash-es": "^4.17.21",
"natural-compare-lite": "^1.4.0",
"sass": "^1.53.0",
"svelte": "^3.48.0",
"svelte-awesome": "^3.0.0",
"svelte-select": "^4.4.7",
"svelte-simple-modal": "^1.4.1",
Expand Down Expand Up @@ -84,7 +85,6 @@
"rollup-plugin-svelte": "7.1.0",
"rollup-plugin-terser": "7.0.2",
"standard-version": "9.5.0",
"svelte": "3.48.0",
"svelte-check": "2.8.0",
"svelte-preprocess": "4.10.7",
"svelte2tsx": "0.5.11",
Expand Down

0 comments on commit acb3acf

Please sign in to comment.