bevry-archive / lazy-require

Sponsor this project to keep it maintained, or use Deno instead.
Other
17 stars 4 forks source link

Always pass save flag depending on option #49

Closed aduth closed 1 year ago

aduth commented 4 years ago

Fixes #48

This pull request seeks to resolve an issue where the save option has no effect if using NPM >=5. See #48 for full debugging details.

With these changes, a --save or --no-save flag will always be provided to npm, depending on the option value. This is intended to work in both NPM >= 5, as well as NPM < 5, by not allowing any default behavior to take effect.