nodemon.js 438 B

12345678910111213141516
  1. #!/usr/bin/env node
  2. const cli = require('../lib/cli');
  3. const nodemon = require('../lib/');
  4. const options = cli.parse(process.argv);
  5. nodemon(options);
  6. const fs = require('fs');
  7. // checks for available update and returns an instance
  8. const pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json'));
  9. if (pkg.version.indexOf('0.0.0') !== 0 && options.noUpdateNotifier !== true) {
  10. require('update-notifier')({ pkg }).notify();
  11. }