create-nube-app 0.4.0 → 0.5.1
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
|
@@ -74,8 +74,10 @@ async function main() {
|
|
|
74
74
|
placeholder: defaultValue,
|
|
75
75
|
validate: validateProjectName
|
|
76
76
|
});
|
|
77
|
-
const projectName = formatProjectName(
|
|
78
|
-
|
|
77
|
+
const projectName = formatProjectName(
|
|
78
|
+
typeof promptProjectName === "string" ? promptProjectName : ""
|
|
79
|
+
);
|
|
80
|
+
if (prompts.isCancel(promptProjectName)) return cancel();
|
|
79
81
|
const promptTemplateName = await prompts.select({
|
|
80
82
|
message: "Select a template:",
|
|
81
83
|
options: [
|
|
@@ -85,7 +87,7 @@ async function main() {
|
|
|
85
87
|
]
|
|
86
88
|
});
|
|
87
89
|
const templateName = promptTemplateName;
|
|
88
|
-
if (prompts.isCancel(
|
|
90
|
+
if (prompts.isCancel(promptTemplateName)) return cancel();
|
|
89
91
|
const dest = path.resolve(process.cwd(), projectName);
|
|
90
92
|
const src = path.join(__dirname, `../templates/${templateName}`);
|
|
91
93
|
if (fs.existsSync(dest) && !isEmpty(dest)) {
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "Tiendanube / Nuvemshop",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@biomejs/biome": "^1.9.4",
|
|
16
|
-
"@tiendanube/nube-sdk-types": "0.
|
|
16
|
+
"@tiendanube/nube-sdk-types": "0.7.0",
|
|
17
17
|
"@vitest/coverage-v8": "^3.0.9",
|
|
18
18
|
"concurrently": "^9.1.2",
|
|
19
19
|
"serve": "^14.2.4",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@biomejs/biome": "^1.9.4",
|
|
17
17
|
"@tiendanube/nube-sdk-ui": "0.4.0",
|
|
18
|
-
"@tiendanube/nube-sdk-types": "0.
|
|
18
|
+
"@tiendanube/nube-sdk-types": "0.7.0",
|
|
19
19
|
"@vitest/coverage-v8": "^3.0.9",
|
|
20
20
|
"concurrently": "^9.1.2",
|
|
21
21
|
"serve": "^14.2.4",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@biomejs/biome": "^1.9.4",
|
|
17
17
|
"@tiendanube/nube-sdk-ui": "0.4.0",
|
|
18
18
|
"@tiendanube/nube-sdk-jsx": "0.4.0",
|
|
19
|
-
"@tiendanube/nube-sdk-types": "0.
|
|
19
|
+
"@tiendanube/nube-sdk-types": "0.7.0",
|
|
20
20
|
"@vitest/coverage-v8": "^3.0.9",
|
|
21
21
|
"concurrently": "^9.1.2",
|
|
22
22
|
"serve": "^14.2.4",
|