Comments (6)
It uses commander, so I'm not sure why the equals delimiter is not working actually. I will look into that.
An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly or follow an = for a long option.
serve -p 80 serve -p80 serve --port 80 serve --port=80
from npm-check-updates.
The syntax is actually ncu --target latest
.
from npm-check-updates.
nice. it should also support this syntax because it is widly used and more readable.
typically tools like commander, yargs and other cli parsers can read and parse this syntax
from npm-check-updates.
Okay, so that wasn't the problem at all. I'm just not use to the =
delimiter, but it works as expected with npm-check-updates
.
I set up the scenario you described, and am unable to reproduce the issue. The CLI option correctly overrides the .ncurc.js option:
raine[1355]% cat package.json ✓
{
"dependencies": {
"ncu-test-v2": "^1.0.0",
"ncu-test-tag": "^1.0.0"
}
}
raine[1355]% cat .ncurc.js ✓
module.exports = {
target: "minor"
}
raine[1355]% ncu
Using config file /Users/raine/projects/ncu-issues/1355/.ncurc.js
Checking /Users/raine/projects/ncu-issues/1355/package.json
[====================] 2/2 100%
ncu-test-tag ^1.0.0 → ^1.1.0
Run ncu -u to upgrade package.json
raine[1355]% ncu --target=latest ✓
Using config file /Users/raine/projects/ncu-issues/1355/.ncurc.js
Checking /Users/raine/projects/ncu-issues/1355/package.json
[====================] 2/2 100%
ncu-test-tag ^1.0.0 → ^1.1.0
ncu-test-v2 ^1.0.0 → ^2.0.0
Run ncu --target=latest -u to upgrade package.json
If you are not seeing the expected upgrades, it is probably due to something else. Feel free to post a package.json and .ncurc.js that reproduce the issue and I'd be happy to investigate further.
from npm-check-updates.
ok, let me reproduce the issue again and give you a feedback
from npm-check-updates.
Let me know if you can reproduce the issue, otherwise I'll close this for now.
from npm-check-updates.
Related Issues (20)
- Unable to upgrade packages which are circular peer dependencies HOT 14
- [Feature] Allow fully resolved custom/non-repo urls to display with --format repo HOT 1
- Suggestion: Add `packageManager` to the default value of `--dep` HOT 1
- How to update `package.json` with versions already installed in `package-lock.json`? HOT 2
- backup old package json HOT 1
- Could not read peer dependencies for package when combining --cwd with --peer HOT 2
- bun.cmd id not recognized HOT 6
- --pre 0 updates to beta package HOT 2
- Bad export of generated JavaScript file HOT 11
- Monorepo/workspaces support via config path specification CLI arg HOT 1
- security vulnerability using [email protected] HOT 1
- Do not exceed upper bound of range when using --target semver
- ncu --doctor show the help HOT 3
- No npm "test" script defined. You must define a "test" script i HOT 3
- interactive CLI has no quit or exit command. HOT 4
- Tie updates of Definitely Typed `@types/` packages to their corresponding code package HOT 3
- Only the first workspace package is checked HOT 2
- Is there a way to not upgrade a package if it's peer depndencies are not currently met HOT 1
- yarn package manager is missing getPeerDependencies
- when packages are filter due to engine not matching, we need to print it out, just like we do in peer checks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-check-updates.