Socket
Socket
Sign inDemoInstall

tsc-watch

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-watch - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

3

CHANGELOG.md
# @gilamran/tsc-watch CHANGELOG
## v1.0.25 - 20/07/2018
* Fixed hadErrors check (Thanks to @tombousso)
## v1.0.24 - 20/07/2018

@@ -4,0 +7,0 @@ * Killing onFail and onSuccess after compilation

36

lib/tsc-watch.js

@@ -76,17 +76,8 @@ #!/usr/bin/env node

function killAllProcesses() {
killFailureProcess().then(() => {
Signal.emitFail();
if (onFailureCommand) {
failureProcess = runCommand(onFailureCommand);
failureProcessExited = new Promise(resolve => {
failureProcess.on('exit', code => {
resolve(code);
});
});
function killAllProcesses(emitSuccess, emitFail) {
killAllSuccessProcesses().then(() => {
if (emitSuccess) {
Signal.emitSuccess();
}
});
killAllSuccessProcesses().then(() => {
Signal.emitSuccess();
if (firstTime && onFirstSuccessCommand) {

@@ -109,2 +100,17 @@ firstTime = false;

});
killFailureProcess().then(() => {
if (emitFail) {
Signal.emitFail();
}
if (onFailureCommand) {
failureProcess = runCommand(onFailureCommand);
failureProcessExited = new Promise(resolve => {
failureProcess.on('exit', code => {
resolve(code);
});
});
}
});
}

@@ -179,3 +185,3 @@

if (compilationComplete) {
killAllProcesses();
killAllProcesses(hadErrors === false, hadErrors === true);
}

@@ -195,3 +201,3 @@ });

tscProcess.on('exit', () => killAllProcesses());
tscProcess.on('exit', () => killAllProcesses(false, false));
process.on('SIGTERM', () => tscProcess.kill(0));
{
"name": "tsc-watch",
"version": "1.0.24",
"version": "1.0.25",
"description": "The TypeScript compiler with onSuccess command",

@@ -5,0 +5,0 @@ "scripts": {

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