wp-typia 0.22.5 → 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-ctddkm3n.js";
22
+ } from "./cli-6a65qfb1.js";
23
23
  import"./cli-1sm60g1z.js";
24
- import"./cli-xbzfx7qz.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-j30rk466.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,6 +11,7 @@ import {
11
11
  buildCommandOptionParser,
12
12
  collectOptionNamesByType,
13
13
  collectPositionalIndexes,
14
+ createMissingOptionValueError,
14
15
  createPlugin,
15
16
  extractKnownOptionValuesFromArgv,
16
17
  findFirstPositionalIndex,
@@ -21,7 +22,7 @@ import {
21
22
  package_default,
22
23
  validateCliOutputFormatArgv,
23
24
  writeStructuredCliDiagnosticError
24
- } from "./cli-nzwpmw4y.js";
25
+ } from "./cli-f44sphgv.js";
25
26
  import"./cli-03j0axbt.js";
26
27
  import {
27
28
  GLOBAL_FLAGS,
@@ -36,6 +37,7 @@ import {
36
37
  } from "./cli-hv2yedw2.js";
37
38
  import"./cli-ac2ebaf8.js";
38
39
  import"./cli-6v0pcxw6.js";
40
+ import"./cli-fys8vm2t.js";
39
41
  import"./cli-p95wr1q8.js";
40
42
  import {
41
43
  __require
@@ -2294,7 +2296,7 @@ function assertStringOptionValues(argv) {
2294
2296
  if (SHORT_OPTION_NAMES_WITH_VALUES.has(arg.slice(1))) {
2295
2297
  const next2 = argv[index + 1];
2296
2298
  if (!next2 || next2.startsWith("-")) {
2297
- throw new Error(`\`${arg}\` requires a value.`);
2299
+ throw createMissingOptionValueError(arg);
2298
2300
  }
2299
2301
  index += 1;
2300
2302
  }
@@ -2309,13 +2311,13 @@ function assertStringOptionValues(argv) {
2309
2311
  }
2310
2312
  if (arg.includes("=")) {
2311
2313
  if (!inlineValue) {
2312
- throw new Error(`\`--${rawName}\` requires a value.`);
2314
+ throw createMissingOptionValueError(`--${rawName}`);
2313
2315
  }
2314
2316
  continue;
2315
2317
  }
2316
2318
  const next = argv[index + 1];
2317
2319
  if (!next || next.startsWith("-")) {
2318
- throw new Error(`\`--${rawName}\` requires a value.`);
2320
+ throw createMissingOptionValueError(`--${rawName}`);
2319
2321
  }
2320
2322
  index += 1;
2321
2323
  }
@@ -2455,7 +2457,7 @@ async function formatCliError(error) {
2455
2457
  }
2456
2458
  async function createWpTypiaCli(options = {}) {
2457
2459
  applyStandaloneSupportLayoutEnv();
2458
- const { wpTypiaCommands } = await import("./command-list-scd6zqp8.js");
2460
+ const { wpTypiaCommands } = await import("./command-list-bqr2tp8w.js");
2459
2461
  const cli = await createCLI({
2460
2462
  ...bunliConfig,
2461
2463
  description: package_default.description,
@@ -2515,4 +2517,4 @@ export {
2515
2517
  createWpTypiaCli
2516
2518
  };
2517
2519
 
2518
- //# debugId=47FFF7F809C451D764756E2164756E21
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-nzwpmw4y.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-1gqgshf0.js");
1387
+ var loadCliAddRuntime = () => import("./cli-add-5vmxpgmn.js");
1384
1388
  var loadCliDiagnosticsRuntime = () => import("./cli-diagnostics-5dvztm7q.js");
1385
- var loadCliDoctorRuntime = () => import("./cli-doctor-w35s8y9w.js");
1386
- var loadCliInitRuntime = () => import("./cli-init-z8sjmkvc.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-ad3bd555.js");
1392
+ var loadCliScaffoldRuntime = () => import("./cli-scaffold-btx3wfsn.js");
1389
1393
  var loadCliTemplatesRuntime = () => import("./cli-templates-9t2a7zqd.js");
1390
- var loadMigrationsRuntime = () => import("./migrations-skkzdvhm.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-w35s8y9w.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-xbzfx7qz.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-j30rk466.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