@evjs/cli 0.3.30 → 0.3.32

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.
@@ -1,6 +1,7 @@
1
1
  import path from "node:path";
2
2
  import { InvalidArgumentError, Option } from "commander";
3
3
  import { parseCliFlags } from "../../program/options.js";
4
+ const DEFAULT_REPORT_DIR = ".turbopack/analyze";
4
5
  function parsePort(value) {
5
6
  const port = Number(value);
6
7
  if (!/^\d+$/.test(value) || !Number.isInteger(port) || port > 65535) {
@@ -15,7 +16,7 @@ export function registerAnalyzeCommand(program, dependencies, runCommand) {
15
16
  .enablePositionalOptions()
16
17
  .allowUnknownOption(true)
17
18
  .option("-o, --output", "Write the report without starting a server")
18
- .option("--output-dir <directory>", "Report directory relative to the project (default: .utoo/analyze)")
19
+ .option("--output-dir <directory>", `Report directory relative to the project (default: ${DEFAULT_REPORT_DIR})`)
19
20
  .option("--port <port>", "Local report server port (default: 4000)", parsePort)
20
21
  .action(async (options, command) => {
21
22
  await runCommand("Analysis failed", async () => {
@@ -39,7 +40,7 @@ export function registerAnalyzeCommand(program, dependencies, runCommand) {
39
40
  .description("Export a saved report as JSONL without compiling")
40
41
  .allowExcessArguments(false)
41
42
  .allowUnknownOption(false)
42
- .option("--report <directory>", "Saved report directory, relative to the current directory", ".utoo/analyze")
43
+ .option("--report <directory>", "Saved report directory, relative to the current directory", DEFAULT_REPORT_DIR)
43
44
  .option("--entry <name>", "Filter by entry name or /entry-N ID")
44
45
  .addOption(new Option("--environment <environment>", "Filter by entry environment").choices(["client", "server"]))
45
46
  .action(async (options, command) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evjs/cli",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "description": "Command-line wrapper for the evjs framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "check-types": "tsc --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@evjs/bundler-utoopack": "0.3.30",
32
- "@evjs/ev": "0.3.30",
31
+ "@evjs/bundler-utoopack": "0.3.32",
32
+ "@evjs/ev": "0.3.32",
33
33
  "@logtape/logtape": "^2.0.4",
34
34
  "commander": "^12.1.0"
35
35
  },