Prefer npm created node_modules/.bin/grunt

This commit is contained in:
Kyle Robinson Young
2013-12-04 20:56:56 -08:00
parent 68e7c209bd
commit 59f453bb06
3 changed files with 7 additions and 6 deletions

View File

@@ -5,5 +5,6 @@ var path = require('path');
process.chdir(path.dirname(__dirname));
safeExec('node script/bootstrap', function() {
safeExec('node node_modules/grunt-cli/bin/grunt ci --stack --no-color', process.exit);
var gruntPath = path.join('node_modules', '.bin', 'grunt') + (process.platform === 'win32' ? '.cmd' : '');
safeExec(gruntPath + ' ci --stack --no-color', process.exit);
});