Skip to content

Commit

Permalink
Removes 'core' extension from orphan context, Booleanizes bangbangs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonholmgren committed Dec 18, 2017
1 parent 7e985ea commit 879e106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const context = {
}

// bring in a few extensions to make available for stand-alone purposes
require('./core-extensions/core-extension')(context)
require('./core-extensions/filesystem-extension')(context)
require('./core-extensions/semver-extension')(context)
require('./core-extensions/system-extension')(context)
Expand Down
6 changes: 3 additions & 3 deletions src/loaders/command-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function loadCommandFromFile (file, options = {}) {
if (valid) {
command.name = commandModule.name || last(command.commandPath)
command.description = commandModule.description
command.hidden = !!commandModule.hidden
command.hidden = Boolean(commandModule.hidden)
command.alias = reject(
isNil,
is(Array, commandModule.alias) ? commandModule.alias : [commandModule.alias]
Expand All @@ -68,11 +68,11 @@ function loadCommandFromPreload (preload) {
const command = new Command()
command.name = preload.name
command.description = preload.description
command.hidden = !!preload.hidden
command.hidden = Boolean(preload.hidden)
command.alias = preload.alias
command.run = preload.run
command.file = null
command.dashed = !!preload.dashed
command.dashed = Boolean(preload.dashed)
command.commandPath = preload.commandPath || [preload.name]
return command
}
Expand Down

0 comments on commit 879e106

Please sign in to comment.