Closed danielgindi closed 2 years ago
Thanks!
I've confirmed this works for me in the example project with both npm v6 and v8.
Here's what I did:
npm i
in the project root"scripty": {"dryRun": true}
to the package.jsonnpm t
does a dry run"config": {"scripty": {"dryRun": true}}
insteadnpm t
still does a dry runnpm t
still does a dry runOne thing I noticed however is that npm t
in the root project is failing on this PR, regardless of npm version. I haven't dug into that at all yet. We should probably get this project back on CI (travis-ci.org doesn't build anymore), and then that test failure would be more obvious. 🙂
And just for my reference later: I'm pretty sure moving this PR forward/merging it will resolve https://github.com/testdouble/scripty/issues/93 and https://github.com/testdouble/scripty/issues/103.
Do we need to add a test case to cover an npm_package_config_scripty_X
env var still plays well with scripty's own env var parsing?
Does the npm lifecycle env var still exist? That's the only other one outside of config that I think we rely on.
Should we also document that npm_package_config_scripty_*
work or no?
Does the npm lifecycle env var still exist? That's the only other one outside of config that I think we rely on.
Yes. It's in the RFC, and validated out there in real life 😉
Should we also document that
npm_package_config_scripty_*
work or no?
Should be obvious the amount as it was before without config
... The full env behavior is in the rfc, which is the major breaking change in npm 7.
Are we merging this? (Does not even require a major version release)
Thanks! Merged and released as 2.1.0
This supports both the old way in npm 6, and npm >= 7 through the new RFC'd config section.