Comparing version 3.0.1 to 3.0.2
# @gilamran/tsc-watch CHANGELOG | ||
## v3.0.0 - 19/9/2019 | ||
## v4.0.0 - 19/9/2019 | ||
Terminating previous processes is now done with `SIGTERM` instead of `SIGUSR2`. - (Thanks to @zontarian) | ||
## v3.0.0 - 9/9/2019 | ||
onSuccess will run on EVERY successful compilation, also on the first success. - (Thanks to @mchl-hub for the idea) | ||
@@ -6,0 +10,0 @@ |
setInterval(() => console.log(Math.random()), 1000); |
setInterval(() => console.log(Math.random()), 1000); |
@@ -0,0 +0,0 @@ function removeRunnerArgs(args) { |
@@ -0,0 +0,0 @@ const { fork } = require('child_process'); |
@@ -5,3 +5,3 @@ const psTree = require('ps-tree'); | ||
let KILL_SIGNAL = 'SIGUSR2'; | ||
let KILL_SIGNAL = 'SIGTERM'; | ||
let hasPS = true; | ||
@@ -21,10 +21,10 @@ | ||
if (isWindows) { | ||
exec('taskkill /pid ' + child.pid + ' /T /F', () => resolve()); | ||
exec('taskkill /pid ' + child.pid + ' /T /F', resolve); | ||
} else { | ||
if (hasPS) { | ||
psTree(child.pid, function(err, kids) { | ||
spawn('kill', ['-s', KILL_SIGNAL, child.pid].concat( kids.map(function(p) { return p.PID; }) )).on('close', () => resolve()); | ||
spawn('kill', ['-s', KILL_SIGNAL, child.pid].concat( kids.map(p => p.PID) )).on('close', resolve); | ||
}); | ||
} else { | ||
exec('kill -s ' + KILL_SIGNAL + ' ' + child.pid, () => resolve()); | ||
exec('kill -s ' + KILL_SIGNAL + ' ' + child.pid, resolve); | ||
} | ||
@@ -31,0 +31,0 @@ } |
@@ -0,0 +0,0 @@ const spawn = require('cross-spawn'); |
@@ -0,0 +0,0 @@ const stripAnsi = require('strip-ansi'); |
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
{ | ||
"name": "tsc-watch", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "The TypeScript compiler with onSuccess command", | ||
"scripts": { | ||
"publish": "node release.js", | ||
"publish": "node release.js major", | ||
"test": "mocha test/**/*.js" | ||
@@ -8,0 +8,0 @@ }, |
@@ -15,3 +15,3 @@ [![Build Status](https://travis-ci.com/gilamran/tsc-watch.svg?branch=master)](https://travis-ci.com/gilamran/tsc-watch) | ||
Notes: | ||
* That all the above `COMMAND`s will be killed on process exit. | ||
* That all the above `COMMAND`s will be killed on process exit. (Using `SIGTERM`) | ||
* A `COMMAND` is a single command and not multi command like `script1.sh && script2.sh` | ||
@@ -18,0 +18,0 @@ |
@@ -0,0 +0,0 @@ const fs = require('fs'); |
@@ -0,0 +0,0 @@ const { expect } = require('chai'); |
@@ -0,0 +0,0 @@ const { expect } = require('chai'); |
@@ -0,0 +0,0 @@ const { fork } = require('child_process'); |
@@ -0,0 +0,0 @@ const { expect } = require('chai'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
29096