Skip to content

Commit

Permalink
fix(core): fix install & update command
Browse files Browse the repository at this point in the history
  • Loading branch information
erha19 committed Jan 8, 2019
1 parent c4a3421 commit 1bfc83b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/@weex/core/src/cli/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export default {
// try prev version
}
commands.push({
name: content.name || '',
alias: content.alias || '',
showed: typeof content.dashed === 'boolean' ? !content.dashed : true,
description: content.description || '',
name: (content && content.name) || '',
alias: (content && content.alias) || '',
showed: content && typeof content.dashed === 'boolean' ? !content.dashed : true,
description: (content && content.description) || '',
})
type = ModType.PLUGIN
})
Expand All @@ -88,6 +88,7 @@ export default {
local: packages[i].root,
commands: commands,
}
commands = []
} else {
globalConfiguration.modules.mods[packages[i].package.name] = {
type: type,
Expand Down

0 comments on commit 1bfc83b

Please sign in to comment.