create-repoctl 0.1.4 → 0.1.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.
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createCreateRepoctlProgram } from "./src-B2gA_DOK.mjs";
1
+ import { t as createCreateRepoctlProgram } from "./src-D3CcgoeO.mjs";
2
2
  import process from "node:process";
3
3
  //#region src/cli.ts
4
4
  createCreateRepoctlProgram().parseAsync(process.argv).catch((error) => {
package/dist/index.d.mts CHANGED
@@ -1,16 +1,16 @@
1
1
  import { Command } from "@icebreakers/monorepo-templates";
2
2
  //#region src/i18n/index.d.ts
3
3
  type CreateRepoctlLocale = 'en' | 'zh-CN';
4
- declare function resolveCreateRepoctlLocale(argv?: readonly string[], env?: Record<string, string | undefined>): CreateRepoctlLocale;
4
+ export declare function resolveCreateRepoctlLocale(argv?: readonly string[], env?: Record<string, string | undefined>): CreateRepoctlLocale;
5
5
  //#endregion
6
6
  //#region src/index.d.ts
7
- interface CreateRepoctlProgramOptions {
7
+ export interface CreateRepoctlProgramOptions {
8
8
  commandName?: string;
9
9
  defaultTarget?: string;
10
10
  cwd?: string;
11
11
  argv?: readonly string[];
12
12
  env?: Record<string, string | undefined>;
13
13
  }
14
- declare function createCreateRepoctlProgram(options?: CreateRepoctlProgramOptions): Command;
14
+ export declare function createCreateRepoctlProgram(options?: CreateRepoctlProgramOptions): Command;
15
15
  //#endregion
16
- export { type CreateRepoctlLocale, CreateRepoctlProgramOptions, createCreateRepoctlProgram, resolveCreateRepoctlLocale };
16
+ export type { CreateRepoctlLocale };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as resolveCreateRepoctlLocale, t as createCreateRepoctlProgram } from "./src-B2gA_DOK.mjs";
1
+ import { n as resolveCreateRepoctlLocale, t as createCreateRepoctlProgram } from "./src-D3CcgoeO.mjs";
2
2
  export { createCreateRepoctlProgram, resolveCreateRepoctlLocale };
@@ -186,7 +186,8 @@ function parseTemplateInput(input) {
186
186
  for (const token of tokens) {
187
187
  const normalized = token.toLowerCase();
188
188
  if (numericTemplatePattern.test(normalized)) {
189
- const choice = templateChoices[Number(normalized) - 1];
189
+ const index = Number(normalized) - 1;
190
+ const choice = templateChoices[index];
190
191
  if (choice) selections.add(choice.key);
191
192
  else unknown.push(token);
192
193
  continue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-repoctl",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "description": "Create a repoctl-managed pnpm and Turborepo workspace",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "node": ">=18.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@icebreakers/monorepo-templates": "1.3.2"
46
+ "@icebreakers/monorepo-templates": "1.3.4"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsd": "^0.33.0"