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 deploy excludes dev dependencies #5035

Closed
kyle-mccarthy opened this issue Jul 14, 2022 · 0 comments · Fixed by #5040
Closed

pnpm deploy excludes dev dependencies #5035

kyle-mccarthy opened this issue Jul 14, 2022 · 0 comments · Fixed by #5040

Comments

@kyle-mccarthy
Copy link

pnpm deploy overrides the dev option making it impossible to include dev dependencies in the output. I have a monorepo that includes several nextjs sites, these sites are deployed using docker using a standalone build. By default this does not work with pnpm due to the symlinked dependencies; however, the deploy command would provide a work around if I could include dev dependencies.

pnpm version: 7.5.1

Code to reproduce the issue:

repository: https://github.com/kyle-mccarthy/pnpm-deploy-issue

Steps

  1. Clone the repo
  2. pnpm deploy --filter=example out
  3. cd example
  4. pnpm build

Expected behavior:

pnpm deploy would allow for including dev dependencies

Actual behavior:

pnpm deploy doesn't include dev dependencies or provide an option that allows to include them

Additional information:

  • node -v prints: 16.13
  • Windows, macOS, or Linux?: macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants