File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,25 @@ SvelteKit is a web application framework for building modern web applications wi
59
59
npx sv create test-app --template minimal --no-install --no-types
60
60
# Press Enter to skip additional packages
61
61
cd test-app
62
- npm install
63
- npm run dev
62
+
63
+ # Use pnpm if available, otherwise fall back to npm
64
+ if command -v pnpm & > /dev/null; then
65
+ pnpm install
66
+ # Link local @sveltejs/kit development version by adding pnpm overrides
67
+ # Replace PATH_TO_KIT_REPO with the actual path to your kit repository
68
+ npm pkg set ' pnpm.overrides.@sveltejs/kit' =' link:PATH_TO_KIT_REPO/packages/kit'
69
+ pnpm install --no-frozen-lockfile
70
+ pnpm run dev
71
+ else
72
+ npm install
73
+ # For npm, manually link the local package
74
+ # Replace PATH_TO_KIT_REPO with the actual path to your kit repository
75
+ npm link PATH_TO_KIT_REPO/packages/kit
76
+ npm run dev
77
+ fi
64
78
```
65
79
- Verify the app starts and loads at http://localhost:5173/
80
+ - Verify it's using the local @sveltejs/kit version (check that ` node_modules/@sveltejs/kit ` is a symlink)
66
81
67
82
2 . ** Test the CLI** :
68
83
``` bash
You can’t perform that action at this time.
0 commit comments