Skip to content
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

pnpm update --prod installs dev dependencies #8038

Open
3 of 4 tasks
hyunbinseo opened this issue May 1, 2024 · 0 comments
Open
3 of 4 tasks

pnpm update --prod installs dev dependencies #8038

hyunbinseo opened this issue May 1, 2024 · 0 comments

Comments

@hyunbinseo
Copy link
Contributor

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

9.0.6

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

pnpm i --prod
# Lockfile is up to date, resolution step is skipped
# Already up to date

# devDependencies: skipped

# Done in 1.1s
pnpm up --prod

# devDependencies:
# + @sveltejs/adapter-node 5.0.1
# + @sveltejs/kit 2.5.3
# + @sveltejs/vite-plugin-svelte 3.0.2
# ...
pnpm i --prod
# Lockfile is up to date, resolution step is skipped
# Packages: -272
# 
# devDependencies:
# - @sveltejs/adapter-node 5.0.1
# - @sveltejs/kit 2.5.3
# - @sveltejs/vite-plugin-svelte 3.0.2
# ...

Describe the Bug

pnpm up --prod installs dev dependencies if they are not installed.

Expected Behavior

pnpm up --prod should only install and update non-dev dependencies. It should not install anything else.

Which Node.js version are you using?

20.12.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant