create-cloudflare 0.0.0-9fd12df8 → 0.0.0-a9349a89
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.js +4 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -57008,7 +57008,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
57008
57008
|
var yargs_default = Yargs;
|
|
57009
57009
|
|
|
57010
57010
|
// package.json
|
|
57011
|
-
var version = "0.0.0-
|
|
57011
|
+
var version = "0.0.0-a9349a89";
|
|
57012
57012
|
|
|
57013
57013
|
// src/common.ts
|
|
57014
57014
|
var import_fs6 = require("fs");
|
|
@@ -58450,15 +58450,16 @@ var parseArgs = async (argv) => {
|
|
|
58450
58450
|
};
|
|
58451
58451
|
};
|
|
58452
58452
|
var validateName = async (name, { acceptDefault = false } = {}) => {
|
|
58453
|
+
const defaultValue = name ?? new import_haikunator.default().haikunate({ tokenHex: true });
|
|
58453
58454
|
return textInput({
|
|
58454
58455
|
question: `Where do you want to create your application?`,
|
|
58455
58456
|
helpText: "also used as application name",
|
|
58456
58457
|
renderSubmitted: (value) => {
|
|
58457
58458
|
return `${brandColor("dir")} ${dim(value)}`;
|
|
58458
58459
|
},
|
|
58459
|
-
defaultValue
|
|
58460
|
+
defaultValue,
|
|
58460
58461
|
acceptDefault,
|
|
58461
|
-
validate: validateProjectDirectory
|
|
58462
|
+
validate: (value = defaultValue) => validateProjectDirectory(value)
|
|
58462
58463
|
});
|
|
58463
58464
|
};
|
|
58464
58465
|
var validateType = async (type, { acceptDefault = false } = {}) => {
|