Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat add command #936

Merged
merged 3 commits into from
Mar 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update installDeps.js
  • Loading branch information
yyx990803 authored Mar 4, 2018
commit eb3c04795cb8df232ce1459bf7d714edba8b0cd9
4 changes: 2 additions & 2 deletions packages/@vue/cli/lib/util/installDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function executeCommand (command, args, targetDir) {
})
}

module.exports.installDeps = async function installDeps (targetDir, command, cliRegistry) {
exports.installDeps = async function installDeps (targetDir, command, cliRegistry) {
const args = []
if (command === 'npm') {
args.push('install', '--loglevel', 'error')
Expand All @@ -171,7 +171,7 @@ module.exports.installDeps = async function installDeps (targetDir, command, cli
await executeCommand(command, args, targetDir)
}

module.exports.installPackage = async function (targetDir, command, cliRegistry, packageName, dev = true) {
exports.installPackage = async function (targetDir, command, cliRegistry, packageName, dev = true) {
const args = []
if (command === 'npm') {
args.push('install', '--loglevel', 'error')
Expand Down