Clean up a load of unused dependencies, broken jake script (#48214)

This commit is contained in:
Jake Bailey 2022-03-11 09:36:03 -08:00 committed by GitHub
parent a4f5555e09
commit 5fd0b6432e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1734 deletions

1667
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,6 @@
"packageManager": "npm@6.14.15",
"devDependencies": {
"@octokit/rest": "latest",
"@types/browserify": "latest",
"@types/chai": "latest",
"@types/convert-source-map": "latest",
"@types/glob": "latest",
@ -40,7 +39,6 @@
"@types/gulp-newer": "latest",
"@types/gulp-rename": "0.0.33",
"@types/gulp-sourcemaps": "0.0.32",
"@types/jake": "latest",
"@types/merge2": "latest",
"@types/microsoft__typescript-etw": "latest",
"@types/minimatch": "latest",
@ -52,15 +50,12 @@
"@types/node-fetch": "^2.3.4",
"@types/q": "latest",
"@types/source-map-support": "latest",
"@types/through2": "latest",
"@types/xml2js": "^0.4.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/experimental-utils": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"async": "latest",
"azure-devops-node-api": "^11.0.1",
"browser-resolve": "^1.11.2",
"browserify": "latest",
"chai": "latest",
"chalk": "^4.1.2",
"convert-source-map": "latest",
@ -87,12 +82,9 @@
"mocha-fivemat-progress-reporter": "latest",
"ms": "^2.1.3",
"node-fetch": "^2.6.1",
"plugin-error": "latest",
"pretty-hrtime": "^1.0.3",
"prex": "^0.4.3",
"q": "latest",
"source-map-support": "latest",
"through2": "latest",
"typescript": "^4.5.5",
"vinyl": "latest",
"vinyl-sourcemaps-apply": "latest",
@ -109,7 +101,6 @@
"start": "node lib/tsc",
"clean": "gulp clean",
"gulp": "gulp",
"jake": "gulp",
"lint": "gulp lint",
"lint:ci": "gulp lint --ci",
"lint:compiler": "gulp lint-compiler",

View File

@ -1,63 +0,0 @@
/**
* 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");
// Slice off 'node bisect-test.js' from the command line args
const args = process.argv.slice(2);
function tsc(tscArgs: string, onExit: (exitCode: number) => void) {
const tsc = cp.exec("node built/local/tsc.js " + tscArgs,() => void 0);
tsc.on("close", tscExitCode => {
onExit(tscExitCode);
});
}
// TODO: Rewrite bisect script to handle the post-jake/gulp swap period
const jake = cp.exec("jake clean local", () => void 0);
jake.on("close", jakeExitCode => {
if (jakeExitCode === 0) {
// See what we're being asked to do
if (args[1] === "compiles" || args[1] === "!compiles") {
tsc(args[0], tscExitCode => {
if ((tscExitCode === 0) === (args[1] === "compiles")) {
console.log("Good");
process.exit(0); // Good
}
else {
console.log("Bad");
process.exit(1); // Bad
}
});
}
else if (args[1] === "emits" || args[1] === "!emits") {
tsc(args[0], tscExitCode => {
fs.readFile(args[2], "utf-8", (err, data) => {
const doesContains = data.indexOf(args[3]) >= 0;
if (doesContains === (args[1] === "emits")) {
console.log("Good");
process.exit(0); // Good
}
else {
console.log("Bad");
process.exit(1); // Bad
}
});
});
}
else {
console.log("Unknown command line arguments.");
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);
}
}
else {
// Compiler build failed; skip this commit
console.log("Skip");
process.exit(125); // bisect skip
}
});