update grunt to use 'npm update' instead of 'npm install'

This commit is contained in:
Spencer Alger 2014-05-22 09:26:49 -07:00
parent 9bca076be6
commit 622630b462
3 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
module.exports = function (grunt) {
var instrumentationMiddleware = require('../utils/instrumentation');
var amdRapperMiddleware = require('../utils/amd-rapper');
var amdRapperMiddleware = require('../utils/amd_rapper');
return {
dev: {

View file

@ -29,7 +29,7 @@ module.exports = function (repo, dir) {
.then(function (out) {
if (prevHash) newHash = out.trim();
if (!prevHash || newHash !== prevHash) {
return spawn('npm', ['install'], dir)()
return spawn('npm', ['update'], dir)()
.then(spawn('bower', ['install'], dir))
.then(function () {
return true;