Skip to content

Commit

Permalink
fixup! feat: add run-script workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Mar 16, 2021
1 parent 30e8766 commit 96552a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/base-command.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Base class for npm.commands[cmd]
const npmlog = require('npmlog')
const usageUtil = require('./utils/usage.js')

class BaseCommand {
Expand Down Expand Up @@ -37,8 +36,10 @@ class BaseCommand {
}

execWorkspaces (args, filters, cb) {
npmlog.warn('This command does not support workspaces.')
cb()
throw Object.assign(
new Error('This command does not support workspaces.'),
{ code: 'ENOWORKSPACES' }
)
}
}
module.exports = BaseCommand

0 comments on commit 96552a0

Please # to comment.