cyclic.js 403 B

123456789
  1. // v1.3.0 October 26, 2013
  2. // https://github.com/bevry/base
  3. if ( require('fs').existsSync('.git') ) {
  4. require('child_process').spawn(
  5. process.platform.indexOf('win') === 0 ? process.execPath.replace('node.exe', 'npm.cmd') : 'npm',
  6. ['install', '--force', require('./package.json').name],
  7. {env:process.env, cwd:process.cwd(), stdio:'inherit'}
  8. ).on('error', console.log).on('close', console.log);
  9. }