-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate @sveltejs/kit dependency (adapter-netlify + adapter-vercel) #1422
Comments
Ah, changing from |
@ThomOrlo thanks for this. Unfortunately we had to revert your PR with #1482. It seems that
|
Describe the bug
With @sveltejs/adapter-vercel or @sveltejs/adapter-netlify, @sveltejs/kit dependency may be downloaded twice.
To Reproduce
→ Skeleton project
@sveltejs/kit 1.0.0-next.104 + 1.0.0-next.105 inside
package-lock.json
:Reproduction: https://github.com/ThomOrlo/duplicate-sveltekit-dependency/
package-lock.json: https://github.com/ThomOrlo/duplicate-sveltekit-dependency/blob/main/package-lock.json#L17
Expected behavior
Only @sveltejs/kit 1.0.0-next.105 inside
package-lock.json
.For example:
I think it's because of
"@sveltejs/kit": "workspace:*"
, it should be"@sveltejs/kit": "workspace:^"
?adapter-vercel: https://github.com/sveltejs/kit/blob/master/packages/adapter-vercel/package.json#L20
adapter-netlify: https://github.com/sveltejs/kit/blob/master/packages/adapter-netlify/package.json#L20
Documentation: https://pnpm.io/workspaces#publishing-workspace-packages
Will be transformed into:
Information about your SvelteKit Installation:
Diagnostics
npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers
Your browser
Chrome
Your adapter (e.g. Node, static, Vercel, Begin, etc...)
Vercel and Netlify
Severity
Does not cause a bug.
The text was updated successfully, but these errors were encountered: