Comparing version 1.0.31 to 1.0.32
# @gilamran/tsc-watch CHANGELOG | ||
## v1.0.32 - 27/11/2018 | ||
Removed chalk dependency - (Thanks to @frank-orellana) | ||
## v1.0.31 - 27/11/2018 | ||
* Upgraded ps-tree, preventing flatmap-stream attack (Thanks to @jeremyhon) | ||
- Upgraded ps-tree, preventing flatmap-stream attack (Thanks to @jeremyhon) | ||
## v1.0.30 - 10/10/2018 | ||
* Added custom compiler ability (Thanks to @sosoba for the PR) | ||
- Added custom compiler ability (Thanks to @sosoba for the PR) | ||
## v1.0.29 - 25/09/2018 | ||
* Fixed regression bug (Thanks to @onehorsetown) | ||
- Fixed regression bug (Thanks to @onehorsetown) | ||
## v1.0.28 - 25/09/2018 | ||
* Fixed command args extraction (Thanks to @mscharley) | ||
- Fixed command args extraction (Thanks to @mscharley) | ||
## v1.0.27 - 27/08/2018 | ||
* Fixed process termination (Thanks to @igrayson) | ||
- Fixed process termination (Thanks to @igrayson) | ||
## v1.0.26 - 20/07/2018 | ||
* Fixed several issues with hadErrors check (Thanks to @tombousso) | ||
- Fixed several issues with hadErrors check (Thanks to @tombousso) | ||
## v1.0.24 - 20/07/2018 | ||
* Killing onFail and onSuccess after compilation | ||
- Killing onFail and onSuccess after compilation | ||
## v1.0.23 - 1/06/2018 | ||
* Typescript as a peer dependency (Thanks to @asztal) | ||
- Typescript as a peer dependency (Thanks to @asztal) | ||
## v1.0.22 - 1/06/2018 | ||
* Added support for Typescript 2.9+ | ||
- Added support for Typescript 2.9+ | ||
## v1.0.21 - 16/04/2018 | ||
* Removed `--noClearScreen` argument, as typescript added `--preserveWatchOutput` | ||
- Removed `--noClearScreen` argument, as typescript added `--preserveWatchOutput` | ||
## v1.0.20 - 16/04/2018 | ||
* Fixed ignoring the last arg | ||
* Added `--noColors` argument | ||
* Added `--noClearScreen` argument | ||
- Fixed ignoring the last arg | ||
- Added `--noColors` argument | ||
- Added `--noClearScreen` argument | ||
## v1.0.19 - 8/04/2018 | ||
* Fixed passing compilation when using --pretty param (Thanks to @tomaba) | ||
- Fixed passing compilation when using --pretty param (Thanks to @tomaba) | ||
## v1.0.17 - 27/01/2018 | ||
* Terminating typescript on SIGTERM event (Thanks to @amir-arad) | ||
- Terminating typescript on SIGTERM event (Thanks to @amir-arad) | ||
## v1.0.16 - 27/01/2018 | ||
* Fixed stdout coloring issues on Mac (Thanks to @jonaskello) | ||
- Fixed stdout coloring issues on Mac (Thanks to @jonaskello) | ||
## v1.0.15 - 18/01/2018 | ||
* Added `--onFailure` argument | ||
- Added `--onFailure` argument | ||
## v1.0.14 - 18/01/2018 | ||
* Fixed Windows newline issue | ||
- Fixed Windows newline issue | ||
## v1.0.9 - 5/12/2017 | ||
* Add CHANGELOG | ||
* Fix typo in package description | ||
* Upgraded chalk version | ||
* Change main to `index.js` | ||
* Removed `yarn.lock` & `package-lock.json` | ||
* Made `index.js` executable | ||
- Add CHANGELOG | ||
- Fix typo in package description | ||
- Upgraded chalk version | ||
- Change main to `index.js` | ||
- Removed `yarn.lock` & `package-lock.json` | ||
- Made `index.js` executable |
setInterval(() => console.log(Math.random()), 1000); |
setInterval(() => console.log(Math.random()), 1000); |
#!/usr/bin/env node | ||
'use strict'; | ||
const chalk = require('chalk'); | ||
const killer = require('./killer'); | ||
@@ -14,3 +12,3 @@ const nodeCleanup = require('node-cleanup'); | ||
const compilationCompleteRegex = /( Compilation complete\. Watching for file changes\.| Found \d+ error[s]?\. Watching for file changes\.)/; | ||
const typescriptSuccessRegex = /Compilation complete/; | ||
const typescriptSuccessRegex = /Compilation complete|Found 0 errors/; | ||
const typescriptWatchCommandRegex = /Watch input files\./; | ||
@@ -35,7 +33,7 @@ const typescriptPrettyErrorRegex = /:\d+:\d+ \- error TS\d+: /; | ||
if (typescriptErrorRegex.test(line)) { | ||
return chalk.red(line); | ||
return `\u001B[31m${line}\u001B[39m`; //Red | ||
} | ||
if (typescriptSuccessRegex.test(line) || typescriptWatchCommandRegex.test(line)) { | ||
return chalk.green(line); | ||
return `\u001B[32m${line}\u001B[39m`; //Green | ||
} | ||
@@ -218,2 +216,2 @@ | ||
tscProcess.kill(signal); | ||
}); | ||
}); |
{ | ||
"name": "tsc-watch", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "The TypeScript compiler with onSuccess command", | ||
@@ -25,3 +25,2 @@ "scripts": { | ||
"dependencies": { | ||
"chalk": "^2.3.0", | ||
"cross-spawn": "^5.1.0", | ||
@@ -28,0 +27,0 @@ "node-cleanup": "^2.1.2", |
@@ -1,2 +0,2 @@ | ||
# The TypeScript compiler with `--watch` and a new onSuccess argument | ||
# The TypeScript compiler with `--onSuccess` argument | ||
`tsc-watch` starts a TypeScript compiler with `--watch` parameter, there are 5 new arguments. | ||
@@ -3,0 +3,0 @@ |
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
6
18455
- Removedchalk@^2.3.0
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)