mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
Something weird is happening with required nodemon and re-running lots of times, that somehow resets the config. I know it's due to my tests, but I'm unsure which one is actually causing the damn issue. Anyway, bed for me, it's almost 2am. Sod this for a game of cricket.
16 lines
426 B
JavaScript
Executable File
16 lines
426 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict';
|
|
var cli = require('../lib/cli'),
|
|
nodemon = require('../lib/'),
|
|
updateNotifier = require('update-notifier'),
|
|
// checks for available update and returns an instance
|
|
notifier = updateNotifier({ packagePath: '../package' });
|
|
|
|
if (notifier.update) {
|
|
// notify using the built-in convenience method
|
|
notifier.notify();
|
|
}
|
|
|
|
var options = cli.parse(process.argv);
|
|
|
|
nodemon(options); |