create-cwa 2.0.0-alpha.41 → 2.0.0-alpha.43

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/index.js CHANGED
@@ -71,7 +71,7 @@ async function askQuestions(manifest, targetArg) {
71
71
  message: 'Project name?',
72
72
  placeholder: 'my-cwa-app',
73
73
  initialValue: targetArg ?? '',
74
- validate: (v) => (v.trim() ? undefined : 'Project name is required'),
74
+ validate: (v) => (v?.trim() ? undefined : 'Project name is required'),
75
75
  }));
76
76
  const ci = checkCancel(await select({
77
77
  message: 'CI/CD pipeline?',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cwa",
3
- "version": "2.0.0-alpha.41",
3
+ "version": "2.0.0-alpha.43",
4
4
  "description": "Create a new CWA (Components Web App) project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,16 +24,16 @@
24
24
  "node": ">=22.13.0"
25
25
  },
26
26
  "dependencies": {
27
- "@clack/prompts": "^0.9.0",
27
+ "@clack/prompts": "^1.8.1",
28
28
  "fast-glob": "^3.3.0",
29
- "fs-extra": "^11.2.0",
30
- "giget": "^1.2.0"
29
+ "fs-extra": "^11.4.1",
30
+ "giget": "^3.3.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/fs-extra": "^11.0.4",
34
- "@types/node": "^20.0.0",
35
- "tsx": "^4.0.0",
36
- "typescript": "^5.0.0"
34
+ "@types/node": "^22.20.5",
35
+ "tsx": "^4.23.15",
36
+ "typescript": "^7.0.2"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsc",
package/src/index.ts CHANGED
@@ -92,7 +92,7 @@ async function askQuestions(manifest: Manifest, targetArg?: string): Promise<Ans
92
92
  message: 'Project name?',
93
93
  placeholder: 'my-cwa-app',
94
94
  initialValue: targetArg ?? '',
95
- validate: (v) => (v.trim() ? undefined : 'Project name is required'),
95
+ validate: (v) => (v?.trim() ? undefined : 'Project name is required'),
96
96
  })
97
97
  ) as string
98
98