angular-docs-cn/tools/npm/check-node-modules
Igor Minar 7140c9cc34 build: make 'npm install' work reliably and issue build warning when node_modules look stale
This is done a in bit kludgy way on purpose so that it works on Windows and CI.

Works around npm/npm#8452.

Closes #2038
2015-06-08 13:05:04 -07:00

8 lines
164 B
JavaScript
Executable File

#!/usr/bin/env node
var checkNpm = require('./check-node-modules.js');
var purgeIfStale = (process.argv.indexOf('--purge') !== -1)
checkNpm(true, purgeIfStale);