Skip to content

Commit 8e74421

Browse files
CopilotRich-Harris
andauthored
Update Manual Testing Scenarios to link local @sveltejs/kit and prefer pnpm (#14190)
* Initial plan * Update Manual Testing Scenarios to link local @sveltejs/kit and prefer pnpm Co-authored-by: Rich-Harris <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Rich-Harris <[email protected]>
1 parent 9b1010d commit 8e74421

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/copilot-instructions.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,25 @@ SvelteKit is a web application framework for building modern web applications wi
5959
npx sv create test-app --template minimal --no-install --no-types
6060
# Press Enter to skip additional packages
6161
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
6478
```
6579
- 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)
6681

6782
2. **Test the CLI**:
6883
```bash

0 commit comments

Comments
 (0)