UNPKG

smartdev

Version:

A development tool that watches for file changes and restarts Node.js apps automatically. Supports JavaScript, MJS, EJS, and CJS files.

9 lines (6 loc) 245 B
#!/usr/bin/env node const { startWatching, manualRestart } = require('../lib/watcher'); const path = require('path'); const entryPoint = process.argv[2] || 'index.js'; startWatching(path.resolve(entryPoint)); manualRestart(entryPoint);