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

feat: add support for production install #251

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

BorePlusPlus
Copy link
Contributor

Description

Add support for installing only production dependencies by passing -P flag.

ni -P

This allows for installing only the production dependencies to allow more lightweight runtimes. See #250 for more details.

Linked Issues

fixes #250

Additional context

Not sure how much value the comment

// npm use `--omit=dev` instead of `--production`

is adding, but I included it for symmetry with the previous comment above.

`ni -P`
For installing just the production dependencies to allow more
lightweight runtimes.
Copy link

pkg-pr-new bot commented Jan 25, 2025

Open in Stackblitz

npm i https://pkg.pr.new/antfu-collective/ni/@antfu/ni@251

commit: ae06b5c

@antfu antfu merged commit 76d3540 into antfu-collective:main Jan 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support installing only production dependencies
2 participants