https://github.com/angular/angular
Raw File
Tip revision: d489ad595de1e128ec6f96d2383fef696c78217b authored by Victor Berchet on 28 September 2017, 19:18:14 UTC
docs: add changelog for 4.4.4
Tip revision: d489ad5
check-node-modules
#!/usr/bin/env node

var checkNpm = require('./check-node-modules.js');

var purgeIfStale = (process.argv.indexOf('--purge') !== -1);

// check-node-modules will exit(1) if we don't need to install to short-circuit `npm install`
// see .travis.yml's `install` block to see the reason for this
var nodeModulesOK = checkNpm(true, purgeIfStale);

process.exit( nodeModulesOK ? 0 : 1);

back to top