Comparing version 1.1.35 to 1.1.36
# @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 @@ |
@@ -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); |
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
24409
469