Skip to content

Commit

Permalink
fix: Update svelte-check to v3.x in svelte-ts template
Browse files Browse the repository at this point in the history
The svelte-ts template installs Typescript in v 5.x, although svelte-check 2.x doesn't specify Typescript 5 as a valid peer dependency. Hence, the installation will fail for all package managers, which throw an error for unmet peer dependencies. This PR upgrades svelte-check to v3.x, which defines Typescript 5 as a valid peer dependency.
  • Loading branch information
valentinpalkovic committed May 5, 2023
1 parent 775505d commit 69f2be3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-vite/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/vite-plugin-svelte": "^2.0.4",
"@tsconfig/svelte": "^4.0.1",
"svelte": "^3.58.0",
"svelte-check": "^2.10.3",
"svelte-check": "^3.3.1",
"tslib": "^2.5.0",
"typescript": "^5.0.2",
"vite": "^4.3.2"
Expand Down
14 changes: 14 additions & 0 deletions packages/vite/bin/vite.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#!/usr/bin/env node
/* build-hook-start */ /*00001*/ try {
require('/Users/valentinpalkovic/.vscode/extensions/wallabyjs.console-ninja-0.0.118/out/buildHook/index.js').default(
{ tool: 'vite' },
)
} catch (e) {
try {
import(
'file:///Users/valentinpalkovic/.vscode/extensions/wallabyjs.console-ninja-0.0.118/out/buildHook/index.js'
)
.then((m) => m.default.default({ tool: 'vite' }))
.catch((p) => {})
} catch (e) {}
} /* build-hook-end */

import { performance } from 'node:perf_hooks'

if (!import.meta.url.includes('node_modules')) {
Expand Down

0 comments on commit 69f2be3

Please sign in to comment.