apiblaze 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168,7 +168,7 @@ var import_commander = require("commander");
|
|
|
168
168
|
var import_chalk7 = __toESM(require("chalk"));
|
|
169
169
|
|
|
170
170
|
// package.json
|
|
171
|
-
var version = "0.1.
|
|
171
|
+
var version = "0.1.17";
|
|
172
172
|
|
|
173
173
|
// src/index.ts
|
|
174
174
|
init_types();
|
|
@@ -521,21 +521,21 @@ async function runDev(options) {
|
|
|
521
521
|
}
|
|
522
522
|
selectedTargets = targets;
|
|
523
523
|
} else {
|
|
524
|
+
const ALL = "__all__";
|
|
524
525
|
const { chosen } = await import_inquirer.default.prompt([{
|
|
525
|
-
type: "
|
|
526
|
+
type: "list",
|
|
526
527
|
name: "chosen",
|
|
527
|
-
message: `Found ${targets.length} projects with an internal target \u2014 pick
|
|
528
|
-
choices:
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
528
|
+
message: `Found ${targets.length} projects with an internal target \u2014 pick one to tunnel:`,
|
|
529
|
+
choices: [
|
|
530
|
+
...targets.map((t) => ({
|
|
531
|
+
name: `${import_chalk3.default.bold(t.projectName)} (${t.tenantName}) \u2014 ${t.target}`,
|
|
532
|
+
value: t
|
|
533
|
+
})),
|
|
534
|
+
new import_inquirer.default.Separator(),
|
|
535
|
+
{ name: `Tunnel all ${targets.length}`, value: ALL }
|
|
536
|
+
]
|
|
533
537
|
}]);
|
|
534
|
-
|
|
535
|
-
console.log("No projects selected. Aborted.");
|
|
536
|
-
process.exit(0);
|
|
537
|
-
}
|
|
538
|
-
selectedTargets = chosen;
|
|
538
|
+
selectedTargets = chosen === ALL ? targets : [chosen];
|
|
539
539
|
}
|
|
540
540
|
console.log(
|
|
541
541
|
import_chalk3.default.green(`
|