Repository navigation
Conversation
npm only warns when a dependency's `engines` doesn't match the installed Node.js version, while Yarn and pnpm fail. Generate an `.npmrc` with `engine-strict=true` for new workspaces that use npm, so installs with an unsupported Node.js version fail instead of printing an easy-to-miss warning. Closes angular#31271
There was a problem hiding this comment.
Code Review
This pull request configures the workspace schematic to generate an .npmrc file with engine-strict=true when npm is selected as the package manager. This ensures that npm strictly enforces engine version requirements, matching the default behavior of other package managers like yarn, pnpm, and bun. Corresponding unit tests have been added to verify this behavior. There are no review comments, and I have no feedback to provide.
|
Thank you for your contribution, @MeAkib! Following some internal discussion, we've decided not to move forward with generating an Closing this PR along with #31271. Thanks again for the effort! |
npm only warns when a dependency's
enginesdoesn't match the installed Node.js version, while Yarn and pnpm fail. Generate an.npmrcwithengine-strict=truefor new workspaces that use npm, so installs with an unsupported Node.js version fail instead of printing an easy-to-miss warning.Closes #31271