@vc-shell/create-vc-app 2.1.0-pr256.0fe3abb → 2.1.0-pr256.34ebb1b
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 +12 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { fileURLToPath as F } from "node:url";
|
|
|
7
7
|
import A from "prompts";
|
|
8
8
|
import r from "node:fs";
|
|
9
9
|
import E from "ejs";
|
|
10
|
-
const O = "2.1.0-pr256.
|
|
10
|
+
const O = "2.1.0-pr256.34ebb1b", V = {
|
|
11
11
|
version: O
|
|
12
12
|
};
|
|
13
13
|
function h(e) {
|
|
@@ -149,16 +149,16 @@ async function Q(e, a) {
|
|
|
149
149
|
o = o || d;
|
|
150
150
|
const f = c.resolve(t, o);
|
|
151
151
|
if (!G(e.type)) {
|
|
152
|
-
const N = P.map((
|
|
152
|
+
const N = P.map((b) => b.value).join(", ");
|
|
153
153
|
console.error(n.red(`Unknown project type: "${e.type}". Valid types: ${N}`)), process.exit(1);
|
|
154
154
|
}
|
|
155
155
|
r.existsSync(f) && !I(f) && !e.overwrite && (console.error(n.red(`Target directory "${o}" is not empty. Use --overwrite to overwrite.`)), process.exit(1));
|
|
156
|
-
const u = p(), y = e.type, g = e["module-name"],
|
|
156
|
+
const u = p(), y = e.type, g = e["module-name"], $ = y === "dynamic-module" ? g || S(u) : g || void 0;
|
|
157
157
|
l = {
|
|
158
158
|
projectName: h(u),
|
|
159
159
|
packageName: e["package-name"] || (k(u) ? u : C(u)),
|
|
160
160
|
projectType: y,
|
|
161
|
-
moduleName:
|
|
161
|
+
moduleName: $,
|
|
162
162
|
basePath: e["base-path"] || _(`/apps/${h(u)}/`),
|
|
163
163
|
tenantRoutes: e["tenant-routes"] || !1,
|
|
164
164
|
aiAgent: e["ai-agent"] || !1,
|
|
@@ -210,7 +210,7 @@ async function Q(e, a) {
|
|
|
210
210
|
}
|
|
211
211
|
],
|
|
212
212
|
{ onCancel: f }
|
|
213
|
-
), y = o ? h(o) : u.projectName, g = u.projectType || "standalone",
|
|
213
|
+
), y = o ? h(o) : u.projectName, g = u.projectType || "standalone", $ = S(y), N = "/apps/" + h(y) + "/", b = await A(
|
|
214
214
|
[
|
|
215
215
|
{
|
|
216
216
|
name: "includeModule",
|
|
@@ -222,7 +222,7 @@ async function Q(e, a) {
|
|
|
222
222
|
name: "moduleName",
|
|
223
223
|
type: (w, M) => g === "standalone" && !M.includeModule ? null : "text",
|
|
224
224
|
message: n.reset("Module name:"),
|
|
225
|
-
initial:
|
|
225
|
+
initial: $,
|
|
226
226
|
format: (w) => String(w).trim()
|
|
227
227
|
},
|
|
228
228
|
{
|
|
@@ -263,12 +263,12 @@ async function Q(e, a) {
|
|
|
263
263
|
projectName: y,
|
|
264
264
|
packageName: u.packageName || (k(y) ? y : C(y)),
|
|
265
265
|
projectType: g,
|
|
266
|
-
moduleName:
|
|
267
|
-
basePath:
|
|
268
|
-
tenantRoutes:
|
|
269
|
-
aiAgent:
|
|
270
|
-
dashboard:
|
|
271
|
-
mocks:
|
|
266
|
+
moduleName: b.moduleName || (b.includeModule !== !1 ? $ : void 0),
|
|
267
|
+
basePath: b.basePath || _(N),
|
|
268
|
+
tenantRoutes: b.tenantRoutes || !1,
|
|
269
|
+
aiAgent: b.aiAgent || !1,
|
|
270
|
+
dashboard: b.dashboard ?? !0,
|
|
271
|
+
mocks: b.mocks || !1
|
|
272
272
|
};
|
|
273
273
|
} catch (u) {
|
|
274
274
|
console.log(u.message), process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/create-vc-app",
|
|
3
3
|
"description": "Application scaffolding",
|
|
4
|
-
"version": "2.1.0-pr256.
|
|
4
|
+
"version": "2.1.0-pr256.34ebb1b",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/ejs": "^3.1.5",
|
|
18
18
|
"@types/prompts": "^2.4.4",
|
|
19
|
-
"@vc-shell/ts-config": "2.1.0-pr256.
|
|
19
|
+
"@vc-shell/ts-config": "2.1.0-pr256.34ebb1b",
|
|
20
20
|
"copyfiles": "^2.4.1",
|
|
21
21
|
"cross-env": "^7.0.3",
|
|
22
22
|
"shx": "^0.3.4",
|