Skip to content

Commit b644230

Browse files
committed
fix: fix dependency updater
1 parent dfb3860 commit b644230

3 files changed

Lines changed: 4 additions & 24 deletions

File tree

lib/commands/package/update-dependencies.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ export default class extends Command {
2222
"type": "boolean",
2323
},
2424
},
25-
"not-installed": {
26-
"short": "l",
27-
"description": "include `not-installed` and `linked` direct dependencies",
28-
"default": false,
29-
"schema": {
30-
"type": "boolean",
31-
},
32-
},
3325
"install": {
3426
"short": "i",
3527
"description": "install found updatable dependencies",

lib/commands/workspace/update-dependencies.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ export default class extends Command {
2323
"type": "boolean",
2424
},
2525
},
26-
"not-installed": {
27-
"short": "l",
28-
"description": "include `not-installed` and `linked` direct dependencies",
29-
"default": false,
30-
"schema": {
31-
"type": "boolean",
32-
},
33-
},
3426
"install": {
3527
"short": "i",
3628
"description": "install found updatable dependencies",

lib/package.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ export default class Package {
642642
return this.npm.api.getOutdatedDependencies( { all } );
643643
}
644644

645-
async updateDependencies ( { all, outdated, notInstalled, install, reinstall, commit, quiet, confirmInstall, outdatedDependencies, cache = {} } = {} ) {
645+
async updateDependencies ( { all, outdated, install, reinstall, commit, quiet, confirmInstall, outdatedDependencies, cache = {} } = {} ) {
646646
if ( !this.dependencies.hasDependencies ) return result( 200 );
647647

648648
var res;
@@ -728,18 +728,14 @@ export default class Package {
728728
if ( dependency.notInstalled ) {
729729
include = true;
730730

731-
if ( notInstalled ) {
732-
dependency.updatable = true;
733-
}
731+
dependency.updatable = true;
734732
}
735733

736734
// linked
737735
else if ( dependency.linked ) {
738-
if ( notInstalled ) {
739-
include = true;
736+
include = true;
740737

741-
dependency.updatable = true;
742-
}
738+
dependency.updatable = true;
743739
}
744740

745741
// installed

0 commit comments

Comments
 (0)