https://github.com/angular/angular
Raw File
Tip revision: 2c757591ee334ced115bc93ba1b944803bb0c07e authored by Andrew Kushnir on 10 March 2021, 17:44:13 UTC
release: cut the v11.2.5 release (#41154)
Tip revision: 2c75759
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