From dc8d47c51d794f681896e18c92347353b1deb864 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Sat, 9 Sep 2017 15:56:11 -0700 Subject: [PATCH] Remove bisect.cmd, remove reference to missing dts, update usage (#18353) --- scripts/bisect-test.ts | 10 ++++++---- scripts/bisect.cmd | 30 ------------------------------ 2 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 scripts/bisect.cmd diff --git a/scripts/bisect-test.ts b/scripts/bisect-test.ts index 93a516bc89907..948b272470f1c 100644 --- a/scripts/bisect-test.ts +++ b/scripts/bisect-test.ts @@ -1,5 +1,7 @@ -/// - +/** + * You should have ts-node installed globally before executing this, probably! + * Otherwise you'll need to compile this script before you start bisecting! + */ import cp = require('child_process'); import fs = require('fs'); @@ -42,8 +44,8 @@ jake.on('close', jakeExitCode => { }); } else { console.log('Unknown command line arguments.'); - console.log('Usage (compile errors): git bisect run scripts\bisect.js "foo.ts --module amd" compiles'); - console.log('Usage (emit check): git bisect run scripts\bisect.js bar.ts emits bar.js "_this = this"'); + console.log('Usage (compile errors): git bisect run ts-node scripts\bisect-test.ts "../failure.ts --module amd" !compiles'); + console.log('Usage (emit check): git bisect run ts-node scripts\bisect-test.ts bar.ts emits bar.js "_this = this"'); // Aborts the 'git bisect run' process process.exit(-1); } diff --git a/scripts/bisect.cmd b/scripts/bisect.cmd deleted file mode 100644 index 148722665d4af..0000000000000 --- a/scripts/bisect.cmd +++ /dev/null @@ -1,30 +0,0 @@ -echo off -IF NOT EXIST scripts\bisect.cmd GOTO :wrongdir -IF "%1" == "" GOTO :usage -IF "%1" == "GO" GOTO :run -GOTO :copy - -:usage -echo Usage: bisect GoodCommit BadCommit test.ts compiles -echo Usage: bisect GoodCommit BadCommit test.ts emits test.js "var x = 3" -GOTO :eof - -:copy -copy scripts\bisect.cmd scripts\bisect-fresh.cmd -scripts\bisect-fresh GO %* -GOTO :eof - -:run -call jake local -node built/local/tsc.js scripts/bisect-test.ts --module commonjs -git bisect start %2 %3 -git bisect run node scripts/bisect-test.js %4 %5 %6 %7 -del scripts\bisect-test.js -del scripts\bisect-fresh.cmd -GOTO :eof - -:wrongdir -@echo Run this file from the repo folder, not the scripts folder -GOTO :eof - -:eof \ No newline at end of file