create-icebreaker 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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -33,10 +33,10 @@ async function updateRootPackageJson(targetDir, projectName) {
33
33
 
34
34
  //#endregion
35
35
  //#region src/templates.ts
36
- function parseTemplateInput(input$1) {
36
+ function parseTemplateInput(input) {
37
37
  const selections = /* @__PURE__ */ new Set();
38
38
  const unknown = [];
39
- const tokens = input$1.split(/[,\\s]+/).map((token) => token.trim()).filter(Boolean);
39
+ const tokens = input.split(/[,\\s]+/).map((token) => token.trim()).filter(Boolean);
40
40
  for (const token of tokens) {
41
41
  const normalized = token.toLowerCase();
42
42
  if (/^\\d+$/.test(normalized)) {
@@ -54,12 +54,12 @@ function parseTemplateInput(input$1) {
54
54
  unknown
55
55
  };
56
56
  }
57
- function resolveTemplateSelections(input$1) {
58
- if (!input$1) return {
57
+ function resolveTemplateSelections(input) {
58
+ if (!input) return {
59
59
  selections: [],
60
60
  unknown: []
61
61
  };
62
- return parseTemplateInput(input$1);
62
+ return parseTemplateInput(input);
63
63
  }
64
64
 
65
65
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-icebreaker",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "description": "Bootstrap the icebreaker monorepo template via npm create/pnpm create with optional cleanup",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@icebreakers/monorepo-templates": "0.1.4"
34
+ "@icebreakers/monorepo-templates": "0.1.6"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"