@flotorch/loadtest 0.2.0 → 0.2.1
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 +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -382,8 +382,7 @@ init_esm_shims();
|
|
|
382
382
|
init_esm_shims();
|
|
383
383
|
import { parseArgs } from "util";
|
|
384
384
|
import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
|
|
385
|
-
import { join
|
|
386
|
-
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
385
|
+
import { join } from "path";
|
|
387
386
|
|
|
388
387
|
// src/schemas/config.zod.ts
|
|
389
388
|
init_esm_shims();
|
|
@@ -456,11 +455,10 @@ var cyan = wrap("36", "39");
|
|
|
456
455
|
var magenta = wrap("35", "39");
|
|
457
456
|
|
|
458
457
|
// src/cli/args.ts
|
|
459
|
-
var
|
|
460
|
-
var pkg = JSON.parse(readFileSync(join(__dirname2, "../../package.json"), "utf-8"));
|
|
458
|
+
var VERSION = true ? "0.2.1" : "dev";
|
|
461
459
|
var VALID_COMMANDS = /* @__PURE__ */ new Set(["run", "generate", "bench", "report", "init"]);
|
|
462
460
|
var HELP_TEXT = `
|
|
463
|
-
${bold("FLOTorch Load Tester")} ${dim(`v${
|
|
461
|
+
${bold("FLOTorch Load Tester")} ${dim(`v${VERSION}`)}
|
|
464
462
|
|
|
465
463
|
${yellow("USAGE")}
|
|
466
464
|
flotorch ${dim("<command>")} ${dim("[options]")}
|
|
@@ -511,7 +509,7 @@ function parseCliArgs(argv) {
|
|
|
511
509
|
allowPositionals: true
|
|
512
510
|
});
|
|
513
511
|
if (values.version) {
|
|
514
|
-
console.log(
|
|
512
|
+
console.log(VERSION);
|
|
515
513
|
process.exit(0);
|
|
516
514
|
}
|
|
517
515
|
if (values.help) {
|