Socket
Socket
Sign inDemoInstall

tsc-watch

Package Overview
Dependencies
20
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.5.0 to 4.6.0

4

CHANGELOG.md
# @gilamran/tsc-watch CHANGELOG
## v4.6.0 - 20/12/2021
- Added `silent` option - (Thanks to @axtk for the idea and @fmvilas for the PR)
## v4.5.0 - 19/8/2021

@@ -4,0 +8,0 @@

@@ -55,2 +55,3 @@ function removeRunnerArgs(args) {

const noClear = extractCommand(allArgs, '--noClear');
const silent = extractCommand(allArgs, '--silent');
let compiler = extractCommandWithValue(allArgs, '--compiler');

@@ -71,2 +72,3 @@ if (!compiler) {

noClear: noClear,
silent: silent,
compiler: compiler,

@@ -73,0 +75,0 @@ args: allArgs,

5

lib/tsc-watch.js

@@ -26,2 +26,3 @@ #!/usr/bin/env node

noClear,
silent,
compiler,

@@ -94,3 +95,5 @@ args,

const line = manipulate(input);
print(noColors, noClear, line);
if (!silent) {
print(noColors, noClear, line);
}
const state = detectState(line);

@@ -97,0 +100,0 @@ const compilationStarted = state.compilationStarted;

{
"name": "tsc-watch",
"version": "4.5.0",
"version": "4.6.0",
"description": "The TypeScript compiler with onSuccess command",

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

@@ -17,2 +17,3 @@ [![Build Status](https://travis-ci.com/gilamran/tsc-watch.svg?branch=master)](https://travis-ci.com/gilamran/tsc-watch)

| `--noClear` | In watch mode the `tsc` compiler clears the screen before reporting<br>Add this argument to prevent that. |
| `--silent` | Do not print any messages on stdout. |
| `--compiler PATH` | The `PATH` will be used instead of typescript compiler.<br>Default is `typescript/bin/tsc` |

@@ -19,0 +20,0 @@

@@ -66,2 +66,7 @@ const { expect } = require('chai');

});
it('Should return the silent', () => {
expect(extractArgs(['node', 'tsc-watch.js', '1.ts']).silent).to.eq(false);
expect(extractArgs(['node', 'tsc-watch.js', '--silent', '1.ts']).silent).to.eq(true);
});

@@ -68,0 +73,0 @@ it('Should return the compiler', () => {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc