build(npm): add tools/npm/reshrinkwrap script and update docs

This commit is contained in:
Igor Minar
2016-01-02 21:47:09 -08:00
committed by Igor Minar
parent 625474c4e2
commit a0d25db4a5
4 changed files with 33 additions and 29 deletions

View File

@ -11,6 +11,7 @@ var PROJECT_ROOT = path.join(__dirname, '../../');
process.chdir(PROJECT_ROOT);
if (fs.existsSync(NPM_SHRINKWRAP_FILE)) {
console.log('copying shrinkwrap fingerprint to', NPM_SHRINKWRAP_CACHED_FILE);
fse.copySync(NPM_SHRINKWRAP_FILE, NPM_SHRINKWRAP_CACHED_FILE);
} else {
console.warn(`${NPM_SHRINKWRAP_FILE} not found. Copy operation will be skipped.`);