wp-typia 0.22.4 → 0.22.6

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.
@@ -19,26 +19,27 @@ import {
19
19
  resolvePackageManagerId,
20
20
  resolveTemplateId,
21
21
  scaffoldProject
22
- } from "./cli-6ymn63t4.js";
22
+ } from "./cli-6a65qfb1.js";
23
23
  import"./cli-1sm60g1z.js";
24
- import"./cli-2mt6bvcj.js";
25
- import"./cli-hb9vpsev.js";
24
+ import"./cli-0q0tz4dq.js";
25
+ import"./cli-2rqf6t0b.js";
26
26
  import"./cli-bq2v559b.js";
27
27
  import"./cli-10pe4mf8.js";
28
28
  import {
29
29
  OFFICIAL_WORKSPACE_TEMPLATE_PACKAGE,
30
30
  isBuiltInTemplateId
31
31
  } from "./cli-tke8twkn.js";
32
- import"./cli-qr2ek735.js";
32
+ import"./cli-5kn2p7ee.js";
33
33
  import {
34
34
  createManagedTempRoot
35
35
  } from "./cli-t73q5aqz.js";
36
+ import"./cli-fys8vm2t.js";
36
37
  import"./cli-p95wr1q8.js";
37
- import"./cli-btbpt84c.js";
38
+ import"./cli-hhp1d348.js";
38
39
  import {
39
40
  formatInstallCommand,
40
41
  formatRunScript
41
- } from "./cli-6bhfzq5e.js";
42
+ } from "./cli-52ke0ptp.js";
42
43
  import"./cli-xnn9xjcy.js";
43
44
 
44
45
  // ../wp-typia-project-tools/src/runtime/cli-scaffold.ts
@@ -556,4 +557,4 @@ export {
556
557
  getNextSteps
557
558
  };
558
559
 
559
- //# debugId=C9BCDEC89787F16964756E2164756E21
560
+ //# debugId=B0B154A223C91D5164756E2164756E21
package/dist-bunli/cli.js CHANGED
@@ -11,16 +11,18 @@ import {
11
11
  buildCommandOptionParser,
12
12
  collectOptionNamesByType,
13
13
  collectPositionalIndexes,
14
+ createMissingOptionValueError,
14
15
  createPlugin,
15
16
  extractKnownOptionValuesFromArgv,
16
17
  findFirstPositionalIndex,
17
18
  loadWpTypiaUserConfig,
18
19
  loadWpTypiaUserConfigFromSource,
19
20
  mergeWpTypiaUserConfig,
21
+ normalizeCliOutputFormatArgv,
20
22
  package_default,
21
23
  validateCliOutputFormatArgv,
22
24
  writeStructuredCliDiagnosticError
23
- } from "./cli-gsj6vyn5.js";
25
+ } from "./cli-f44sphgv.js";
24
26
  import"./cli-03j0axbt.js";
25
27
  import {
26
28
  GLOBAL_FLAGS,
@@ -35,6 +37,7 @@ import {
35
37
  } from "./cli-hv2yedw2.js";
36
38
  import"./cli-ac2ebaf8.js";
37
39
  import"./cli-6v0pcxw6.js";
40
+ import"./cli-fys8vm2t.js";
38
41
  import"./cli-p95wr1q8.js";
39
42
  import {
40
43
  __require
@@ -2293,7 +2296,7 @@ function assertStringOptionValues(argv) {
2293
2296
  if (SHORT_OPTION_NAMES_WITH_VALUES.has(arg.slice(1))) {
2294
2297
  const next2 = argv[index + 1];
2295
2298
  if (!next2 || next2.startsWith("-")) {
2296
- throw new Error(`\`${arg}\` requires a value.`);
2299
+ throw createMissingOptionValueError(arg);
2297
2300
  }
2298
2301
  index += 1;
2299
2302
  }
@@ -2308,13 +2311,13 @@ function assertStringOptionValues(argv) {
2308
2311
  }
2309
2312
  if (arg.includes("=")) {
2310
2313
  if (!inlineValue) {
2311
- throw new Error(`\`--${rawName}\` requires a value.`);
2314
+ throw createMissingOptionValueError(`--${rawName}`);
2312
2315
  }
2313
2316
  continue;
2314
2317
  }
2315
2318
  const next = argv[index + 1];
2316
2319
  if (!next || next.startsWith("-")) {
2317
- throw new Error(`\`--${rawName}\` requires a value.`);
2320
+ throw createMissingOptionValueError(`--${rawName}`);
2318
2321
  }
2319
2322
  index += 1;
2320
2323
  }
@@ -2454,7 +2457,7 @@ async function formatCliError(error) {
2454
2457
  }
2455
2458
  async function createWpTypiaCli(options = {}) {
2456
2459
  applyStandaloneSupportLayoutEnv();
2457
- const { wpTypiaCommands } = await import("./command-list-wsaa4t2p.js");
2460
+ const { wpTypiaCommands } = await import("./command-list-bqr2tp8w.js");
2458
2461
  const cli = await createCLI({
2459
2462
  ...bunliConfig,
2460
2463
  description: package_default.description,
@@ -2490,7 +2493,7 @@ async function main(argv = process.argv.slice(2)) {
2490
2493
  const { argv: cliArgv, configOverridePath } = extractWpTypiaConfigOverride(normalizedArgv);
2491
2494
  validateCliOutputFormatArgv(cliArgv);
2492
2495
  const cli = await createWpTypiaCli({ configOverridePath });
2493
- await cli.run(cliArgv);
2496
+ await cli.run(normalizeCliOutputFormatArgv(cliArgv));
2494
2497
  }
2495
2498
  async function runCliEntrypoint(argv = process.argv.slice(2)) {
2496
2499
  try {
@@ -2514,4 +2517,4 @@ export {
2514
2517
  createWpTypiaCli
2515
2518
  };
2516
2519
 
2517
- //# debugId=CF070B64D3FCE30F64756E2164756E21
2520
+ //# debugId=8055E7CFBE8C705564756E2164756E21
@@ -1,6 +1,5 @@
1
1
  // @bun
2
2
  import {
3
- ADD_KIND_IDS,
4
3
  ADD_OPTION_METADATA,
5
4
  CREATE_OPTION_METADATA,
6
5
  DOCTOR_OPTION_METADATA,
@@ -18,7 +17,7 @@ import {
18
17
  package_default,
19
18
  prefersStructuredCliOutput,
20
19
  resolveCommandOptionValues
21
- } from "./cli-gsj6vyn5.js";
20
+ } from "./cli-f44sphgv.js";
22
21
  import {
23
22
  Result,
24
23
  TaggedError,
@@ -35,6 +34,9 @@ import"./cli-ac2ebaf8.js";
35
34
  import {
36
35
  createManagedTempRoot
37
36
  } from "./cli-t73q5aqz.js";
37
+ import {
38
+ ADD_KIND_IDS
39
+ } from "./cli-fys8vm2t.js";
38
40
  import {
39
41
  CLI_DIAGNOSTIC_CODES,
40
42
  createCliDiagnosticCodeError
@@ -44,7 +46,7 @@ import {
44
46
  formatPackageExecCommand,
45
47
  formatRunScript,
46
48
  inferPackageManagerId
47
- } from "./cli-6bhfzq5e.js";
49
+ } from "./cli-52ke0ptp.js";
48
50
  import {
49
51
  __require,
50
52
  __toESM
@@ -400,7 +402,9 @@ var ADD_KIND_REGISTRY = {
400
402
  getValues: (result) => ({
401
403
  abilitySlug: result.abilitySlug
402
404
  }),
403
- missingNameMessage: "`wp-typia add ability` requires <name>. Usage: wp-typia add ability <name>."
405
+ getWarnings: (result) => result.warnings,
406
+ missingNameMessage: "`wp-typia add ability` requires <name>. Usage: wp-typia add ability <name>.",
407
+ warnLine: context.warnLine
404
408
  });
405
409
  },
406
410
  sortOrder: 90,
@@ -844,7 +848,7 @@ async function simulateWorkspaceAddDryRun({
844
848
  cwd,
845
849
  execute
846
850
  }) {
847
- const { resolveWorkspaceProject } = await import("./workspace-project-7826tewa.js");
851
+ const { resolveWorkspaceProject } = await import("./workspace-project-csnnggz6.js");
848
852
  const workspace = resolveWorkspaceProject(cwd);
849
853
  const relativeCwd = path.relative(workspace.projectDir, path.resolve(cwd));
850
854
  const { path: tempRoot, cleanup } = await createManagedTempRoot("wp-typia-add-plan-");
@@ -1380,14 +1384,14 @@ async function executeSyncCommand({
1380
1384
  }
1381
1385
 
1382
1386
  // src/runtime-bridge.ts
1383
- var loadCliAddRuntime = () => import("./cli-add-6s6kzf7x.js");
1387
+ var loadCliAddRuntime = () => import("./cli-add-5vmxpgmn.js");
1384
1388
  var loadCliDiagnosticsRuntime = () => import("./cli-diagnostics-5dvztm7q.js");
1385
- var loadCliDoctorRuntime = () => import("./cli-doctor-70zd5m3b.js");
1386
- var loadCliInitRuntime = () => import("./cli-init-kjjyky1y.js");
1389
+ var loadCliDoctorRuntime = () => import("./cli-doctor-ngzs8kkc.js");
1390
+ var loadCliInitRuntime = () => import("./cli-init-df1wg71p.js");
1387
1391
  var loadCliPromptRuntime = () => import("./cli-prompt-614tq57c.js");
1388
- var loadCliScaffoldRuntime = () => import("./cli-scaffold-f57ccf5v.js");
1392
+ var loadCliScaffoldRuntime = () => import("./cli-scaffold-btx3wfsn.js");
1389
1393
  var loadCliTemplatesRuntime = () => import("./cli-templates-9t2a7zqd.js");
1390
- var loadMigrationsRuntime = () => import("./migrations-vw502qf9.js");
1394
+ var loadMigrationsRuntime = () => import("./migrations-bnrjw4k1.js");
1391
1395
  async function wrapCliCommandError(command, error) {
1392
1396
  const { createCliCommandError } = await loadCliDiagnosticsRuntime();
1393
1397
  return createCliCommandError({ command, error });
@@ -2335,7 +2339,7 @@ var doctorCommand = defineCommand({
2335
2339
  const prefersStructuredOutput = prefersStructuredCliOutput(args);
2336
2340
  if (prefersStructuredOutput) {
2337
2341
  const [{ getDoctorChecks }, { getDoctorFailureDetailLines }] = await Promise.all([
2338
- import("./cli-doctor-70zd5m3b.js"),
2342
+ import("./cli-doctor-ngzs8kkc.js"),
2339
2343
  import("./cli-diagnostics-5dvztm7q.js")
2340
2344
  ]);
2341
2345
  const checks = await getDoctorChecks(args.cwd);
@@ -3201,4 +3205,4 @@ export {
3201
3205
  wpTypiaCommands
3202
3206
  };
3203
3207
 
3204
- //# debugId=72FB605118CF0EEA64756E2164756E21
3208
+ //# debugId=2AA06F030398E13464756E2164756E21
@@ -15,12 +15,13 @@ import {
15
15
  snapshotProjectVersion,
16
16
  verifyProjectMigrations,
17
17
  wizardProjectMigrations
18
- } from "./cli-2mt6bvcj.js";
19
- import"./cli-hb9vpsev.js";
18
+ } from "./cli-0q0tz4dq.js";
19
+ import"./cli-2rqf6t0b.js";
20
20
  import"./cli-bq2v559b.js";
21
- import"./cli-qr2ek735.js";
22
- import"./cli-btbpt84c.js";
23
- import"./cli-6bhfzq5e.js";
21
+ import"./cli-5kn2p7ee.js";
22
+ import"./cli-fys8vm2t.js";
23
+ import"./cli-hhp1d348.js";
24
+ import"./cli-52ke0ptp.js";
24
25
  import"./cli-xnn9xjcy.js";
25
26
  export {
26
27
  wizardProjectMigrations,
@@ -40,4 +41,4 @@ export {
40
41
  diffProjectMigrations
41
42
  };
42
43
 
43
- //# debugId=80B9CEC15229B31964756E2164756E21
44
+ //# debugId=6C9410F9A5F336C364756E2164756E21