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: support frozen production install #255

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

BorePlusPlus
Copy link
Contributor

@BorePlusPlus BorePlusPlus commented Jan 27, 2025

Description

Adds support for installing only production dependencies while adhering to lock file specification and ensuring it is consistent with package.json

Allows user to call nci -P or ni --frozen -P to do so.

Warning

pnpm-lock.yaml points to a linked version of package-manager-detector, which I used locally to develop. antfu-collective/package-manager-detector#40 should be merged and released first, and the version of the new release should be used as a dependency before merging and releasing changes from this PR.

Linked Issues

#254 and to extent #250 (as the seed of the idea)

Additional context

resolves #254

Builds are failing due to the usage of linking mentioned in the warning section above - nr build runs OK locally with package-manager-detector linked to antfu-collective/package-manager-detector#40.

Install only production dependencies while adhering to lock file
specification and ensuring it is consistent with package.json
README.md Outdated Show resolved Hide resolved
Copy link

pkg-pr-new bot commented Jan 30, 2025

Open in Stackblitz

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

commit: 29dd623

@antfu antfu merged commit e19af36 into antfu-collective:main Jan 30, 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 frozen install of only production dependencies
2 participants