Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/unpublish.js')
-rw-r--r--deps/npm/lib/unpublish.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/npm/lib/unpublish.js b/deps/npm/lib/unpublish.js
index 1571fd88ef7..32a634013a7 100644
--- a/deps/npm/lib/unpublish.js
+++ b/deps/npm/lib/unpublish.js
@@ -6,7 +6,6 @@ const npmFetch = require('npm-registry-fetch')
const libunpub = require('libnpmpublish').unpublish
const readJson = util.promisify(require('read-package-json'))
-const getWorkspaces = require('./workspaces/get-workspaces.js')
const otplease = require('./utils/otplease.js')
const getIdentity = require('./utils/get-identity.js')
@@ -129,8 +128,7 @@ class Unpublish extends BaseCommand {
}
async unpublishWorkspaces (args, filters) {
- const workspaces =
- await getWorkspaces(filters, { path: this.npm.localPrefix })
+ await this.setWorkspaces(filters)
const force = this.npm.config.get('force')
if (!force) {
@@ -140,7 +138,7 @@ class Unpublish extends BaseCommand {
)
}
- for (const [name] of workspaces.entries())
+ for (const name of this.workspaceNames)
await this.unpublish([name])
}
}