-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node): do not update versions of packages installed using a proto…
…col (#2281) fixes #2173 Co-authored-by: Jeff Ching <[email protected]>
- Loading branch information
Showing
4 changed files
with
133 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,62 @@ exports['PackageJson updateContent does not update peer dependencies by default | |
` | ||
|
||
exports['PackageJson updateContent does not update versions of dependencies that are protocols 1'] = ` | ||
{ | ||
\t"name": "yargs-parser", | ||
\t"version": "14.0.0", | ||
\t"description": "the mighty option parser used by yargs", | ||
\t"main": "index.js", | ||
\t"scripts": { | ||
\t\t"test": "nyc mocha test/*.js", | ||
\t\t"posttest": "standard", | ||
\t\t"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
\t\t"release": "standard-version" | ||
\t}, | ||
\t"repository": { | ||
\t\t"url": "[email protected]:yargs/yargs-parser.git" | ||
\t}, | ||
\t"keywords": [ | ||
\t\t"argument", | ||
\t\t"parser", | ||
\t\t"yargs", | ||
\t\t"command", | ||
\t\t"cli", | ||
\t\t"parsing", | ||
\t\t"option", | ||
\t\t"args", | ||
\t\t"argument" | ||
\t], | ||
\t"author": "Ben Coe <[email protected]>", | ||
\t"license": "ISC", | ||
\t"devDependencies": { | ||
\t\t"chai": "^4.2.0", | ||
\t\t"coveralls": "^3.0.2", | ||
\t\t"mocha": "^5.2.0", | ||
\t\t"nyc": "workspace:*", | ||
\t\t"standard": "link:../standard" | ||
\t}, | ||
\t"dependencies": { | ||
\t\t"camelcase": "^5.0.0", | ||
\t\t"decamelize": "portal:../decamelize" | ||
\t}, | ||
\t"optionalDependencies": { | ||
\t\t"foo": "~0.1.0" | ||
\t}, | ||
\t"peerDependencies": { | ||
\t\t"bar": "workspace:^" | ||
\t}, | ||
\t"files": [ | ||
\t\t"lib", | ||
\t\t"index.js" | ||
\t], | ||
\t"engine": { | ||
\t\t"node": ">=6" | ||
\t} | ||
} | ||
` | ||
|
||
exports['PackageJson updateContent updates dependency versions 1'] = ` | ||
{ | ||
\t"name": "yargs-parser", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
test/updaters/fixtures/package-with-protocol-dependencies.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "yargs-parser", | ||
"version": "13.0.0", | ||
"description": "the mighty option parser used by yargs", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "nyc mocha test/*.js", | ||
"posttest": "standard", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"release": "standard-version" | ||
}, | ||
"repository": { | ||
"url": "[email protected]:yargs/yargs-parser.git" | ||
}, | ||
"keywords": [ | ||
"argument", | ||
"parser", | ||
"yargs", | ||
"command", | ||
"cli", | ||
"parsing", | ||
"option", | ||
"args", | ||
"argument" | ||
], | ||
"author": "Ben Coe <[email protected]>", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.2", | ||
"mocha": "^5.2.0", | ||
"nyc": "workspace:*", | ||
"standard": "link:../standard" | ||
}, | ||
"dependencies": { | ||
"camelcase": "^5.0.0", | ||
"decamelize": "portal:../decamelize" | ||
}, | ||
"optionalDependencies": { | ||
"foo": "~0.0.7" | ||
}, | ||
"peerDependencies": { | ||
"bar": "workspace:^" | ||
}, | ||
"files": [ | ||
"lib", | ||
"index.js" | ||
], | ||
"engine": { | ||
"node": ">=6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters