Skip to content

Commit 8af0ca0

Browse files
yjbanovgoderbauer
authored andcommitted
chore(build): use pub upgrade instead of pub get
Closes angular#3585
1 parent 2946ceb commit 8af0ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/build/pubget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99

1010
function pubGetDir(gulp, plugins, config) {
1111
return function() {
12-
return util.processToPromise(spawn(config.command, ['get'], {
12+
return util.processToPromise(spawn(config.command, ['upgrade'], {
1313
stdio: 'inherit',
1414
cwd: config.dir
1515
}));
@@ -21,7 +21,7 @@ function pubGetSubDir(gulp, plugins, config) {
2121
// We need to execute pubspec serially as otherwise we can get into trouble
2222
// with the pub cache...
2323
return util.forEachSubDirSequential(config.dir, function(subDir) {
24-
return util.processToPromise(spawn(config.command, ['get'], {
24+
return util.processToPromise(spawn(config.command, ['upgrade'], {
2525
stdio: 'inherit',
2626
cwd: subDir
2727
}));

0 commit comments

Comments
 (0)