@wangs-ui/create-react-app 1.0.31 → 1.0.32
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/bin.js +4 -3
- package/package.json +1 -1
- package/template/package.json +4 -4
package/dist/bin.js
CHANGED
|
@@ -1267,16 +1267,17 @@ async function promptUser(initialOptions) {
|
|
|
1267
1267
|
message: "What is your project name?",
|
|
1268
1268
|
placeholder: "my-wangs-app",
|
|
1269
1269
|
defaultValue: "my-wangs-app",
|
|
1270
|
+
initialValue: "my-wangs-app",
|
|
1270
1271
|
validate: (value) => {
|
|
1271
|
-
|
|
1272
|
-
if (/[<>:"/\\|?*]/.test(
|
|
1272
|
+
const effective = (value || "").trim();
|
|
1273
|
+
if (effective && /[<>:"/\\|?*]/.test(effective)) return "Project name contains invalid characters";
|
|
1273
1274
|
}
|
|
1274
1275
|
});
|
|
1275
1276
|
if (isCancel(nameResponse)) {
|
|
1276
1277
|
cancel("Project scaffolding cancelled.");
|
|
1277
1278
|
process$1.exit(0);
|
|
1278
1279
|
}
|
|
1279
|
-
projectName = nameResponse.trim();
|
|
1280
|
+
projectName = (nameResponse || "my-wangs-app").trim();
|
|
1280
1281
|
}
|
|
1281
1282
|
if (!preset) {
|
|
1282
1283
|
const presetResponse = await select({
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"format:check": "oxfmt --check"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@wangs-ui/react-core": "^1.0.
|
|
17
|
-
"@wangs-ui/react-i18n": "^1.0.
|
|
18
|
-
"@wangs-ui/react-icons": "^1.0.
|
|
19
|
-
"@wangs-ui/react-presets": "^1.0.
|
|
16
|
+
"@wangs-ui/react-core": "^1.0.32",
|
|
17
|
+
"@wangs-ui/react-i18n": "^1.0.32",
|
|
18
|
+
"@wangs-ui/react-icons": "^1.0.32",
|
|
19
|
+
"@wangs-ui/react-presets": "^1.0.32",
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
21
|
"react": "^19.2.7",
|
|
22
22
|
"react-dom": "^19.2.7",
|