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.1.35 to 1.1.36

4

CHANGELOG.md
# @gilamran/tsc-watch CHANGELOG
## v1.1.36 - 31/1/2019
`--watch` will be added to the end of the arguments (Thanks to @barkayal)
## v1.1.35 - 28/1/2019

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

2

lib/args-manager.js

@@ -20,3 +20,3 @@ function removeRunnerArgs(args) {

if (!hasWatchCommand(args)) {
args.unshift('--watch');
args.push('--watch');
}

@@ -23,0 +23,0 @@

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

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

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

const { args } = extractArgs(['node', 'tsc-watch.js', '-d', '1.ts']);
expect(args).to.deep.eq(['--watch', '-d', '1.ts']);
expect(args).to.deep.eq(['-d', '1.ts', '--watch']);
});

@@ -13,3 +13,3 @@

const { args } = extractArgs(['node', 'tsc-watch.js', '--compiler', 'MY_COMPILER', '--nocolors', '--noclear', '--onsuccess', 'MY_SUCCESS', '--onfailure', 'MY_FAILURE', '--onfirstsuccess', 'MY_FIRST', '-d', '1.ts']);
expect(args).to.deep.eq(['--watch', '-d', '1.ts']);
expect(args).to.deep.eq(['-d', '1.ts', '--watch']);
});

@@ -22,2 +22,8 @@

it('Should not change the argv order options if watch was not specified (fixes --build option)', () => {
const { args } = extractArgs(['node', 'tsc-watch.js', '--build', '1.tsconfig.conf', '2.tsconfig.conf']);
expect(args.indexOf('--build')).to.be.equal(0);
expect(args.indexOf('--watch')).to.be.equal(3);
});
it('Should not re-add watch', () => {

@@ -24,0 +30,0 @@ expect(extractArgs(['node', 'tsc-watch.js', '-w', '1.ts']).args.indexOf('-w')).to.be.greaterThan(-1);

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