https://github.com/angular/angular
Raw File
Tip revision: a4c9e8df6d28f70804c69e42c6094cd6323fc6bc authored by Andrew Kushnir on 22 June 2022, 23:44:31 UTC
release: cut the v14.0.3 release
Tip revision: a4c9e8d
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