Skip to content

Commit

Permalink
chore: upgrade SvelteKit and add preprepare script to generate tsconf…
Browse files Browse the repository at this point in the history
…ig for local installs
  • Loading branch information
benmccann committed Jan 17, 2025
1 parent 6536cbf commit 1b33491
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-dingos-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

chore: upgrade SvelteKit and add preprepare script to generate tsconfig for local installs
5 changes: 3 additions & 2 deletions packages/create/templates/demo/package.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"preprepare": "svelte-kit sync"
},
"devDependencies": {
"@fontsource/fira-mono": "^5.0.0",
"@neoconfetti/svelte": "^2.0.0",
"@sveltejs/adapter-auto": "^4.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/kit": "^2.16.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"svelte": "^5.0.0",
"vite": "^5.4.11"
Expand Down
3 changes: 2 additions & 1 deletion packages/create/templates/library/package.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"dev": "vite dev",
"build": "vite build && npm run prepack",
"preview": "vite preview",
"preprepare": "svelte-kit sync",
"prepack": "svelte-kit sync && svelte-package && publint"
},
"files": ["dist", "!dist/**/*.test.*", "!dist/**/*.spec.*"],
Expand All @@ -23,7 +24,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^4.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/kit": "^2.16.0",
"@sveltejs/package": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"publint": "^0.3.2",
Expand Down
5 changes: 3 additions & 2 deletions packages/create/templates/minimal/package.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"preprepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^4.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/kit": "^2.16.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"svelte": "^5.0.0",
"vite": "^5.4.11"
Expand Down

0 comments on commit 1b33491

Please sign in to comment.