Comparing version 0.12.0 to 0.13.0
{ | ||
"name": "npm-watch", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "run scripts from package.json when files change", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,5 +8,6 @@ 'use strict'; | ||
var npm = process.platform === 'win32' ? 'npm.cmd' : 'npm'; | ||
var nodemon = process.platform === 'win32' ? 'nodemon.cmd' : 'nodemon'; | ||
var clearCharacter = process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'; | ||
var isWindows = process.platform === 'win32'; | ||
var npm = isWindows ? 'npm.cmd' : 'npm'; | ||
var nodemon = isWindows ? 'nodemon.cmd' : 'nodemon'; | ||
var clearCharacter = isWindows ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'; | ||
@@ -104,3 +105,3 @@ var pkgDir = ''; | ||
function startScript(script, pkg, processes, setMaxListeners, scriptsCount) { | ||
var exec = [npm, 'run', '-s', script].join(' ') | ||
var exec = [npm, 'run', '--silent', script].join(' ') | ||
var patterns = null | ||
@@ -165,7 +166,9 @@ var extensions = null | ||
args = args.concat(['--exec', exec]) | ||
var proc = processes[script] = spawn(nodemon, args, { | ||
env: process.env, | ||
cwd: pkgDir, | ||
stdio: inherit === true ? ['pipe', 'inherit', 'inherit'] : 'pipe' | ||
stdio: inherit === true ? ['pipe', 'inherit', 'inherit'] : 'pipe', | ||
// https://github.com/nodejs/node/issues/52554 | ||
shell: isWindows | ||
}) | ||
@@ -172,0 +175,0 @@ if (inherit === true) return; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14611
180