Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-watch

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-watch - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc