chore(build): use pub upgrade instead of pub get

Closes #3585
This commit is contained in:
Yegor Jbanov 2015-08-11 08:59:28 -07:00 committed by Yegor
parent 561066f899
commit 2374e16104
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ module.exports = {
function pubGetDir(gulp, plugins, config) {
return function() {
return util.processToPromise(spawn(config.command, ['get'], {
return util.processToPromise(spawn(config.command, ['upgrade'], {
stdio: 'inherit',
cwd: config.dir
}));
@ -21,7 +21,7 @@ function pubGetSubDir(gulp, plugins, config) {
// We need to execute pubspec serially as otherwise we can get into trouble
// with the pub cache...
return util.forEachSubDirSequential(config.dir, function(subDir) {
return util.processToPromise(spawn(config.command, ['get'], {
return util.processToPromise(spawn(config.command, ['upgrade'], {
stdio: 'inherit',
cwd: subDir
}));