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.
Related Issues (20)
- Inadequate documentation for rejectVersion HOT 7
- Unsupported target "semver" using pnpm HOT 2
- Feature request: Synchronous API HOT 2
- Library won't install anymore HOT 1
- [feature request] add changelog ( --format repo) to "ncu -i --format group" HOT 2
- Is support for importmaps feasible?
- Is support for importmaps feasible? HOT 5
- npm ci fails on Windows HOT 1
- package-lock.json behaves weirdly in npm-check-updates versions >= 16.4.0 HOT 4
- Does not support dist-tag insiders HOT 1
- Very high bandwidth usage in monorepo HOT 24
- Upgrade breaking dependencies HOT 1
- Make `--root` the default in workspaces mode
- Set type: module in package.json
- [[email protected]] pacote has some deprecated modules. @npmcli/move-file has been moved to @npmcli/fs. HOT 1
- Specific Angular Upgrade HOT 3
- Memory leak detected in version inflight-1.0.6 by veracode HOT 1
- Feature: Update GitHub Actions HOT 1
- Interactive mode reprints everything on keydown HOT 9
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.