mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 22:15:18 -05:00
--inspect can no longer be used as a flag through gulp (#42701)
* --inspect can no longer be used as a flag through gulp * Add --break alias * Update scripts/build/options.js
This commit is contained in:
@@ -4,12 +4,11 @@ const os = require("os");
|
||||
|
||||
/** @type {CommandLineOptions} */
|
||||
module.exports = minimist(process.argv.slice(2), {
|
||||
boolean: ["debug", "dirty", "light", "colors", "lint", "lkg", "soft", "fix", "failed", "keepFailed", "force", "built"],
|
||||
string: ["browser", "tests", "inspect", "host", "reporter", "stackTraceLimit", "timeout", "shards", "shardId"],
|
||||
boolean: ["dirty", "light", "colors", "lint", "lkg", "soft", "fix", "failed", "keepFailed", "force", "built"],
|
||||
string: ["browser", "tests", "break", "host", "reporter", "stackTraceLimit", "timeout", "shards", "shardId"],
|
||||
alias: {
|
||||
"b": "browser",
|
||||
"d": ["debug", "debug-brk"],
|
||||
"i": ["inspect", "inspect-brk"],
|
||||
"i": ["inspect", "inspect-brk", "break", "debug", "debug-brk"],
|
||||
"t": ["tests", "test"],
|
||||
"ru": ["runners", "runner"],
|
||||
"r": "reporter",
|
||||
@@ -47,7 +46,6 @@ if (module.exports.built) {
|
||||
|
||||
/**
|
||||
* @typedef TypedOptions
|
||||
* @property {boolean} debug
|
||||
* @property {boolean} dirty
|
||||
* @property {boolean} light
|
||||
* @property {boolean} colors
|
||||
@@ -58,7 +56,7 @@ if (module.exports.built) {
|
||||
* @property {boolean} fix
|
||||
* @property {string} browser
|
||||
* @property {string} tests
|
||||
* @property {string} inspect
|
||||
* @property {string | boolean} inspect
|
||||
* @property {string} runners
|
||||
* @property {string|number} workers
|
||||
* @property {string} host
|
||||
|
||||
@@ -27,8 +27,7 @@ exports.localTest262Baseline = "internal/baselines/test262/local";
|
||||
async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode, cancelToken = CancellationToken.none) {
|
||||
let testTimeout = cmdLineOptions.timeout;
|
||||
let tests = cmdLineOptions.tests;
|
||||
const debug = cmdLineOptions.debug;
|
||||
const inspect = cmdLineOptions.inspect;
|
||||
const inspect = cmdLineOptions.break || cmdLineOptions.inspect;
|
||||
const runners = cmdLineOptions.runners;
|
||||
const light = cmdLineOptions.light;
|
||||
const stackTraceLimit = cmdLineOptions.stackTraceLimit;
|
||||
@@ -101,11 +100,7 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
|
||||
args.push("--no-colors");
|
||||
}
|
||||
if (inspect !== undefined) {
|
||||
args.unshift(inspect == "" ? "--inspect-brk" : "--inspect-brk="+inspect);
|
||||
args.push("-t", "0");
|
||||
}
|
||||
else if (debug) {
|
||||
args.unshift("--debug-brk");
|
||||
args.unshift((inspect == "" || inspect === true) ? "--inspect-brk" : "--inspect-brk="+inspect);
|
||||
args.push("-t", "0");
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user