When using local config flags, some of them are overridden by the default CLI flags
I have a local config file with a tests flag set to false
, but it gets set to true
when running np CLI without any flags.
This is where it happened
https://github.com/sindresorhus/np/blob/main/source/cli-implementation.js#L113-L117
and with here, there is no way to set tests
flag to false
https://github.com/sindresorhus/np/blob/main/source/cli-implementation.js#L63-L65
I put some console.log
inside ./node_modules/np/source/cli-implementation.js
and here are the outputs. First is my local config flags and second is the default CLI ones. Then the third is the final merged options result.
It should have no default CLI flags if not using it in terminal script.
np - 10.0.7
Node.js - 20.11.0
npm - 10.8.2
Git - 2.34.1
OS - Linux Mint 21.3
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too