https://github.com/angular/angular
Raw File
Tip revision: 12e0cfab54a58e46c157b2e840520847e30cdd28 authored by Joey Perrott on 30 June 2021, 20:13:53 UTC
release: cut the v12.1.1 release (#42721)
Tip revision: 12e0cfa
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