@forinda/kickjs-cli 3.0.4 → 3.0.5

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/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs-cli v3.0.4
2
+ * @forinda/kickjs-cli v3.0.5
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -616,10 +616,10 @@ export default defineConfig({
616
616
  steps: 'npx prettier --check src/',
617
617
  },
618
618
  {
619
- name: 'check',
619
+ name: 'ci:check',
620
620
  description: 'Run typecheck + format check',
621
621
  steps: ['npx tsc --noEmit', 'npx prettier --check src/'],
622
- aliases: ['verify', 'ci'],
622
+ aliases: ['verify'],
623
623
  },
624
624
  ],
625
625
  })
@@ -4301,10 +4301,10 @@ export default defineConfig({
4301
4301
  steps: 'npx prettier --check src/',
4302
4302
  },
4303
4303
  {
4304
- name: 'check',
4304
+ name: 'ci:check',
4305
4305
  description: 'Run typecheck + format check',
4306
4306
  steps: ['npx tsc --noEmit', 'npx prettier --check src/'],
4307
- aliases: ['verify', 'ci'],
4307
+ aliases: ['verify'],
4308
4308
  },
4309
4309
  ],
4310
4310
  })
@@ -6830,7 +6830,14 @@ function registerInfoCommand(program) {
6830
6830
  */
6831
6831
  function registerCustomCommands(program, config) {
6832
6832
  if (!config?.commands?.length) return;
6833
- for (const cmd of config.commands) registerSingleCommand(program, cmd);
6833
+ const builtinNames = new Set(program.commands.map((c) => c.name()));
6834
+ for (const cmd of config.commands) {
6835
+ if (builtinNames.has(cmd.name)) {
6836
+ console.warn(` Warning: custom command '${cmd.name}' skipped — conflicts with a built-in command`);
6837
+ continue;
6838
+ }
6839
+ registerSingleCommand(program, cmd);
6840
+ }
6834
6841
  }
6835
6842
  function registerSingleCommand(program, def) {
6836
6843
  const command = program.command(def.name).description(def.description);
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs-cli v3.0.4
2
+ * @forinda/kickjs-cli v3.0.5
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1863,10 +1863,10 @@ export default defineConfig({
1863
1863
  steps: 'npx prettier --check src/',
1864
1864
  },
1865
1865
  {
1866
- name: 'check',
1866
+ name: 'ci:check',
1867
1867
  description: 'Run typecheck + format check',
1868
1868
  steps: ['npx tsc --noEmit', 'npx prettier --check src/'],
1869
- aliases: ['verify', 'ci'],
1869
+ aliases: ['verify'],
1870
1870
  },
1871
1871
  ],
1872
1872
  })
@@ -3767,7 +3767,7 @@ async function initProject(options) {
3767
3767
  }
3768
3768
  }
3769
3769
  try {
3770
- const { runTypegen } = await import("./typegen-Cv4EkN_V.mjs");
3770
+ const { runTypegen } = await import("./typegen-B2kD9rO0.mjs");
3771
3771
  await runTypegen({
3772
3772
  cwd: dir,
3773
3773
  allowDuplicates: true,