create-vxrn 2.6.2 → 2.6.4
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/.turbo/turbo-build.log +1 -1
- package/dist/cjs/index.cjs +13 -17
- package/dist/cjs/index.native.cjs +13 -17
- package/dist/cjs/index.native.js +13 -17
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.mjs +13 -17
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +13 -17
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +16 -21
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ tamagui-build
|
|
2
|
-
built create-vxrn in
|
|
2
|
+
built create-vxrn in 511 ms
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -32,10 +32,21 @@ function exit() {
|
|
|
32
32
|
}
|
|
33
33
|
process.on("SIGTERM", exit);
|
|
34
34
|
process.on("SIGINT", exit);
|
|
35
|
+
function getPackageVersion() {
|
|
36
|
+
let dirname;
|
|
37
|
+
if (typeof __dirname !== "undefined") {
|
|
38
|
+
dirname = __dirname;
|
|
39
|
+
} else {
|
|
40
|
+
dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
41
|
+
}
|
|
42
|
+
const packagePath = import_node_path.default.join(dirname, "..", "..", "package.json");
|
|
43
|
+
const packageJson = JSON.parse((0, import_node_fs.readFileSync)(packagePath, "utf-8"));
|
|
44
|
+
return packageJson.version;
|
|
45
|
+
}
|
|
35
46
|
const main = (0, import_citty.defineCommand)({
|
|
36
47
|
meta: {
|
|
37
|
-
name: "
|
|
38
|
-
version:
|
|
48
|
+
name: "create-vxrn",
|
|
49
|
+
version: getPackageVersion(),
|
|
39
50
|
description: "Welcome to vxrn"
|
|
40
51
|
},
|
|
41
52
|
args: {
|
|
@@ -75,18 +86,3 @@ const main = (0, import_citty.defineCommand)({
|
|
|
75
86
|
}
|
|
76
87
|
});
|
|
77
88
|
(0, import_citty.runMain)(main);
|
|
78
|
-
function getPackageVersion() {
|
|
79
|
-
let dirname;
|
|
80
|
-
if (typeof __dirname !== "undefined") {
|
|
81
|
-
dirname = __dirname;
|
|
82
|
-
} else {
|
|
83
|
-
dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
84
|
-
}
|
|
85
|
-
const packagePath = import_node_path.default.join(dirname, "..", "..", "package.json");
|
|
86
|
-
const packageJson = JSON.parse((0, import_node_fs.readFileSync)(packagePath, "utf-8"));
|
|
87
|
-
return packageJson.version;
|
|
88
|
-
}
|
|
89
|
-
if (process.argv.includes("--version")) {
|
|
90
|
-
console.info(getPackageVersion());
|
|
91
|
-
process.exit(0);
|
|
92
|
-
}
|
|
@@ -34,10 +34,21 @@ function exit() {
|
|
|
34
34
|
}
|
|
35
35
|
process.on("SIGTERM", exit);
|
|
36
36
|
process.on("SIGINT", exit);
|
|
37
|
+
function getPackageVersion() {
|
|
38
|
+
var dirname;
|
|
39
|
+
if (typeof __dirname !== "undefined") {
|
|
40
|
+
dirname = __dirname;
|
|
41
|
+
} else {
|
|
42
|
+
dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));
|
|
43
|
+
}
|
|
44
|
+
var packagePath = import_path.default.join(dirname, "..", "..", "package.json");
|
|
45
|
+
var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, "utf-8"));
|
|
46
|
+
return packageJson.version;
|
|
47
|
+
}
|
|
37
48
|
var main = (0, import_citty.defineCommand)({
|
|
38
49
|
meta: {
|
|
39
|
-
name: "
|
|
40
|
-
version:
|
|
50
|
+
name: "create-vxrn",
|
|
51
|
+
version: getPackageVersion(),
|
|
41
52
|
description: "Welcome to vxrn"
|
|
42
53
|
},
|
|
43
54
|
args: {
|
|
@@ -78,18 +89,3 @@ var main = (0, import_citty.defineCommand)({
|
|
|
78
89
|
}
|
|
79
90
|
});
|
|
80
91
|
(0, import_citty.runMain)(main);
|
|
81
|
-
function getPackageVersion() {
|
|
82
|
-
var dirname;
|
|
83
|
-
if (typeof __dirname !== "undefined") {
|
|
84
|
-
dirname = __dirname;
|
|
85
|
-
} else {
|
|
86
|
-
dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));
|
|
87
|
-
}
|
|
88
|
-
var packagePath = import_path.default.join(dirname, "..", "..", "package.json");
|
|
89
|
-
var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, "utf-8"));
|
|
90
|
-
return packageJson.version;
|
|
91
|
-
}
|
|
92
|
-
if (process.argv.includes("--version")) {
|
|
93
|
-
console.info(getPackageVersion());
|
|
94
|
-
process.exit(0);
|
|
95
|
-
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -34,10 +34,21 @@ function exit() {
|
|
|
34
34
|
}
|
|
35
35
|
process.on("SIGTERM", exit);
|
|
36
36
|
process.on("SIGINT", exit);
|
|
37
|
+
function getPackageVersion() {
|
|
38
|
+
var dirname;
|
|
39
|
+
if (typeof __dirname !== "undefined") {
|
|
40
|
+
dirname = __dirname;
|
|
41
|
+
} else {
|
|
42
|
+
dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));
|
|
43
|
+
}
|
|
44
|
+
var packagePath = import_path.default.join(dirname, "..", "..", "package.json");
|
|
45
|
+
var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, "utf-8"));
|
|
46
|
+
return packageJson.version;
|
|
47
|
+
}
|
|
37
48
|
var main = (0, import_citty.defineCommand)({
|
|
38
49
|
meta: {
|
|
39
|
-
name: "
|
|
40
|
-
version:
|
|
50
|
+
name: "create-vxrn",
|
|
51
|
+
version: getPackageVersion(),
|
|
41
52
|
description: "Welcome to vxrn"
|
|
42
53
|
},
|
|
43
54
|
args: {
|
|
@@ -78,20 +89,5 @@ var main = (0, import_citty.defineCommand)({
|
|
|
78
89
|
}
|
|
79
90
|
});
|
|
80
91
|
(0, import_citty.runMain)(main);
|
|
81
|
-
function getPackageVersion() {
|
|
82
|
-
var dirname;
|
|
83
|
-
if (typeof __dirname !== "undefined") {
|
|
84
|
-
dirname = __dirname;
|
|
85
|
-
} else {
|
|
86
|
-
dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));
|
|
87
|
-
}
|
|
88
|
-
var packagePath = import_path.default.join(dirname, "..", "..", "package.json");
|
|
89
|
-
var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, "utf-8"));
|
|
90
|
-
return packageJson.version;
|
|
91
|
-
}
|
|
92
|
-
if (process.argv.includes("--version")) {
|
|
93
|
-
console.info(getPackageVersion());
|
|
94
|
-
process.exit(0);
|
|
95
|
-
}
|
|
96
92
|
|
|
97
93
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["#!/usr/bin/env node\n\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_citty = require(\"citty\");\nvar import_path = __toESM(require(\"path\"));\nvar import_process = require(\"process\");\nvar import_getTemplateInfo = require(\"./helpers/getTemplateInfo\");\nvar import_create = require(\"./create\");\nvar import_url = require(\"url\");\nvar import_fs = require(\"fs\");\nconst import_meta = {};\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nvar main = (0, import_citty.defineCommand)({\n meta: {\n name: \"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["#!/usr/bin/env node\n\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_citty = require(\"citty\");\nvar import_path = __toESM(require(\"path\"));\nvar import_process = require(\"process\");\nvar import_getTemplateInfo = require(\"./helpers/getTemplateInfo\");\nvar import_create = require(\"./create\");\nvar import_url = require(\"url\");\nvar import_fs = require(\"fs\");\nconst import_meta = {};\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nfunction getPackageVersion() {\n var dirname;\n if (typeof __dirname !== \"undefined\") {\n dirname = __dirname;\n } else {\n dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));\n }\n var packagePath = import_path.default.join(dirname, \"..\", \"..\", \"package.json\");\n var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, \"utf-8\"));\n return packageJson.version;\n}\nvar main = (0, import_citty.defineCommand)({\n meta: {\n name: \"create-vxrn\",\n version: getPackageVersion(),\n description: \"Welcome to vxrn\"\n },\n args: {\n directory: {\n type: \"positional\",\n description: \"Directory to copy into\",\n default: \"\"\n },\n template: {\n type: \"string\",\n required: false,\n description: \"Choose a template in advance (avoid selection screen).\"\n },\n info: {\n type: \"boolean\",\n description: \"Output the post-install instructions for the template.\"\n }\n },\n async run(param) {\n var { args } = param;\n if (args.info) {\n var template = await (0, import_getTemplateInfo.getTemplateInfo)(args.template);\n if (\"extraSteps\" in template) {\n await template.extraSteps({\n isFullClone: false,\n projectName: import_path.default.basename((0, import_process.cwd)()),\n projectPath: (0, import_process.cwd)()\n });\n }\n return;\n }\n console.info();\n console.info(import_ansis.default.bold(\"Creating vxrn app...\"));\n await (0, import_create.create)({\n name: args.directory,\n template: args.template\n });\n }\n});\n(0, import_citty.runMain)(main);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,eAAe,QAAQ,QAAQ,OAAO,CAAC;AAC3C,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,cAAc,QAAQ,QAAQ,MAAM,CAAC;AACzC,IAAI,iBAAiB,QAAQ,SAAS;AACtC,IAAI,yBAAyB,QAAQ,qCAA2B;AAChE,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,IAAI,aAAa,QAAQ,KAAK;AAC9B,IAAI,YAAY,QAAQ,IAAI;AAC5B,MAAM,cAAc,CAAC;AACrB,SAAS,OAAO;CACd,QAAQ,KAAK,CAAC;AAChB;AACA,QAAQ,GAAG,WAAW,IAAI;AAC1B,QAAQ,GAAG,UAAU,IAAI;AACzB,SAAS,oBAAoB;CAC3B,IAAI;CACJ,IAAI,OAAO,cAAc,aAAa;EACpC,UAAU;CACZ,OAAO;EACL,UAAU,YAAY,QAAQ,SAAS,GAAG,WAAW,cAAa,CAAE,YAAY,GAAG,CAAC;CACtF;CACA,IAAI,cAAc,YAAY,QAAQ,KAAK,SAAS,MAAM,MAAM,cAAc;CAC9E,IAAI,cAAc,KAAK,OAAO,GAAG,UAAU,aAAY,CAAE,aAAa,OAAO,CAAC;CAC9E,OAAO,YAAY;AACrB;AACA,IAAI,QAAQ,GAAG,aAAa,cAAa,CAAE;CACzC,MAAM;EACJ,MAAM;EACN,SAAS,kBAAkB;EAC3B,aAAa;CACf;CACA,MAAM;EACJ,WAAW;GACT,MAAM;GACN,aAAa;GACb,SAAS;EACX;EACA,UAAU;GACR,MAAM;GACN,UAAU;GACV,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;CACF;CACA,MAAM,IAAI,OAAO;EACf,IAAI,EAAE,SAAS;EACf,IAAI,KAAK,MAAM;GACb,IAAI,WAAW,OAAO,GAAG,uBAAuB,gBAAe,CAAE,KAAK,QAAQ;GAC9E,IAAI,gBAAgB,UAAU;IAC5B,MAAM,SAAS,WAAW;KACxB,aAAa;KACb,aAAa,YAAY,QAAQ,UAAU,GAAG,eAAe,IAAG,CAAE,CAAC;KACnE,cAAc,GAAG,eAAe,IAAG,CAAE;IACvC,CAAC;GACH;GACA;EACF;EACA,QAAQ,KAAK;EACb,QAAQ,KAAK,aAAa,QAAQ,KAAK,sBAAsB,CAAC;EAC9D,OAAO,GAAG,cAAc,OAAM,CAAE;GAC9B,MAAM,KAAK;GACX,UAAU,KAAK;EACjB,CAAC;CACH;AACF,CAAC;CACA,GAAG,aAAa,QAAO,CAAE,IAAI"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -13,10 +13,21 @@ function exit() {
|
|
|
13
13
|
}
|
|
14
14
|
process.on("SIGTERM", exit);
|
|
15
15
|
process.on("SIGINT", exit);
|
|
16
|
+
function getPackageVersion() {
|
|
17
|
+
let dirname;
|
|
18
|
+
if (typeof __dirname !== "undefined") {
|
|
19
|
+
dirname = __dirname;
|
|
20
|
+
} else {
|
|
21
|
+
dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
22
|
+
}
|
|
23
|
+
const packagePath = path.join(dirname, "..", "..", "package.json");
|
|
24
|
+
const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
|
|
25
|
+
return packageJson.version;
|
|
26
|
+
}
|
|
16
27
|
const main = defineCommand({
|
|
17
28
|
meta: {
|
|
18
|
-
name: "
|
|
19
|
-
version:
|
|
29
|
+
name: "create-vxrn",
|
|
30
|
+
version: getPackageVersion(),
|
|
20
31
|
description: "Welcome to vxrn"
|
|
21
32
|
},
|
|
22
33
|
args: {
|
|
@@ -56,20 +67,5 @@ const main = defineCommand({
|
|
|
56
67
|
}
|
|
57
68
|
});
|
|
58
69
|
runMain(main);
|
|
59
|
-
function getPackageVersion() {
|
|
60
|
-
let dirname;
|
|
61
|
-
if (typeof __dirname !== "undefined") {
|
|
62
|
-
dirname = __dirname;
|
|
63
|
-
} else {
|
|
64
|
-
dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
65
|
-
}
|
|
66
|
-
const packagePath = path.join(dirname, "..", "..", "package.json");
|
|
67
|
-
const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
|
|
68
|
-
return packageJson.version;
|
|
69
|
-
}
|
|
70
|
-
if (process.argv.includes("--version")) {
|
|
71
|
-
console.info(getPackageVersion());
|
|
72
|
-
process.exit(0);
|
|
73
|
-
}
|
|
74
70
|
|
|
75
71
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["#!/usr/bin/env node\nimport ansis from \"ansis\";\nimport { defineCommand, runMain } from \"citty\";\nimport path from \"node:path\";\nimport { cwd } from \"node:process\";\nimport { getTemplateInfo } from \"./helpers/getTemplateInfo\";\nimport { create } from \"./create\";\nimport { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nconst main = defineCommand({\n meta: {\n name: \"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["#!/usr/bin/env node\nimport ansis from \"ansis\";\nimport { defineCommand, runMain } from \"citty\";\nimport path from \"node:path\";\nimport { cwd } from \"node:process\";\nimport { getTemplateInfo } from \"./helpers/getTemplateInfo\";\nimport { create } from \"./create\";\nimport { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nfunction getPackageVersion() {\n let dirname;\n if (typeof __dirname !== \"undefined\") {\n dirname = __dirname;\n } else {\n dirname = path.dirname(fileURLToPath(import.meta.url));\n }\n const packagePath = path.join(dirname, \"..\", \"..\", \"package.json\");\n const packageJson = JSON.parse(readFileSync(packagePath, \"utf-8\"));\n return packageJson.version;\n}\nconst main = defineCommand({\n meta: {\n name: \"create-vxrn\",\n version: getPackageVersion(),\n description: \"Welcome to vxrn\"\n },\n args: {\n directory: {\n type: \"positional\",\n description: \"Directory to copy into\",\n default: \"\"\n },\n template: {\n type: \"string\",\n required: false,\n description: \"Choose a template in advance (avoid selection screen).\"\n },\n info: {\n type: \"boolean\",\n description: \"Output the post-install instructions for the template.\"\n }\n },\n async run({ args }) {\n if (args.info) {\n let template = await getTemplateInfo(args.template);\n if (\"extraSteps\" in template) {\n await template.extraSteps({\n isFullClone: false,\n projectName: path.basename(cwd()),\n projectPath: cwd()\n });\n }\n return;\n }\n console.info();\n console.info(ansis.bold(\"Creating vxrn app...\"));\n await create({ name: args.directory, template: args.template });\n }\n});\nrunMain(main);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;;;;AASA,SAAS,OAAO;CACd,QAAQ,KAAK,CAAC;AAChB;AACA,QAAQ,GAAG,WAAW,IAAI;AAC1B,QAAQ,GAAG,UAAU,IAAI;AACzB,SAAS,oBAAoB;CAC3B,IAAI;CACJ,IAAI,OAAO,cAAc,aAAa;EACpC,UAAU;CACZ,OAAO;EACL,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;CACvD;CACA,MAAM,cAAc,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc;CACjE,MAAM,cAAc,KAAK,MAAM,aAAa,aAAa,OAAO,CAAC;CACjE,OAAO,YAAY;AACrB;AACA,MAAM,OAAO,cAAc;CACzB,MAAM;EACJ,MAAM;EACN,SAAS,kBAAkB;EAC3B,aAAa;CACf;CACA,MAAM;EACJ,WAAW;GACT,MAAM;GACN,aAAa;GACb,SAAS;EACX;EACA,UAAU;GACR,MAAM;GACN,UAAU;GACV,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;CACF;CACA,MAAM,IAAI,EAAE,QAAQ;EAClB,IAAI,KAAK,MAAM;GACb,IAAI,WAAW,MAAM,gBAAgB,KAAK,QAAQ;GAClD,IAAI,gBAAgB,UAAU;IAC5B,MAAM,SAAS,WAAW;KACxB,aAAa;KACb,aAAa,KAAK,SAAS,IAAI,CAAC;KAChC,aAAa,IAAI;IACnB,CAAC;GACH;GACA;EACF;EACA,QAAQ,KAAK;EACb,QAAQ,KAAK,MAAM,KAAK,sBAAsB,CAAC;EAC/C,MAAM,OAAO;GAAE,MAAM,KAAK;GAAW,UAAU,KAAK;EAAS,CAAC;CAChE;AACF,CAAC;AACD,QAAQ,IAAI"}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -13,10 +13,21 @@ function exit() {
|
|
|
13
13
|
}
|
|
14
14
|
process.on("SIGTERM", exit);
|
|
15
15
|
process.on("SIGINT", exit);
|
|
16
|
+
function getPackageVersion() {
|
|
17
|
+
var dirname;
|
|
18
|
+
if (typeof __dirname !== "undefined") {
|
|
19
|
+
dirname = __dirname;
|
|
20
|
+
} else {
|
|
21
|
+
dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
22
|
+
}
|
|
23
|
+
var packagePath = path.join(dirname, "..", "..", "package.json");
|
|
24
|
+
var packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
|
|
25
|
+
return packageJson.version;
|
|
26
|
+
}
|
|
16
27
|
var main = defineCommand({
|
|
17
28
|
meta: {
|
|
18
|
-
name: "
|
|
19
|
-
version:
|
|
29
|
+
name: "create-vxrn",
|
|
30
|
+
version: getPackageVersion(),
|
|
20
31
|
description: "Welcome to vxrn"
|
|
21
32
|
},
|
|
22
33
|
args: {
|
|
@@ -57,20 +68,5 @@ var main = defineCommand({
|
|
|
57
68
|
}
|
|
58
69
|
});
|
|
59
70
|
runMain(main);
|
|
60
|
-
function getPackageVersion() {
|
|
61
|
-
var dirname;
|
|
62
|
-
if (typeof __dirname !== "undefined") {
|
|
63
|
-
dirname = __dirname;
|
|
64
|
-
} else {
|
|
65
|
-
dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
66
|
-
}
|
|
67
|
-
var packagePath = path.join(dirname, "..", "..", "package.json");
|
|
68
|
-
var packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
|
|
69
|
-
return packageJson.version;
|
|
70
|
-
}
|
|
71
|
-
if (process.argv.includes("--version")) {
|
|
72
|
-
console.info(getPackageVersion());
|
|
73
|
-
process.exit(0);
|
|
74
|
-
}
|
|
75
71
|
|
|
76
72
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["#!/usr/bin/env node\nimport ansis from \"ansis\";\nimport { defineCommand, runMain } from \"citty\";\nimport path from \"path\";\nimport { cwd } from \"process\";\nimport { getTemplateInfo } from \"./helpers/getTemplateInfo\";\nimport { create } from \"./create\";\nimport { fileURLToPath } from \"url\";\nimport { readFileSync } from \"fs\";\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nvar main = defineCommand({\n meta: {\n name: \"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["#!/usr/bin/env node\nimport ansis from \"ansis\";\nimport { defineCommand, runMain } from \"citty\";\nimport path from \"path\";\nimport { cwd } from \"process\";\nimport { getTemplateInfo } from \"./helpers/getTemplateInfo\";\nimport { create } from \"./create\";\nimport { fileURLToPath } from \"url\";\nimport { readFileSync } from \"fs\";\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nfunction getPackageVersion() {\n var dirname;\n if (typeof __dirname !== \"undefined\") {\n dirname = __dirname;\n } else {\n dirname = path.dirname(fileURLToPath(import.meta.url));\n }\n var packagePath = path.join(dirname, \"..\", \"..\", \"package.json\");\n var packageJson = JSON.parse(readFileSync(packagePath, \"utf-8\"));\n return packageJson.version;\n}\nvar main = defineCommand({\n meta: {\n name: \"create-vxrn\",\n version: getPackageVersion(),\n description: \"Welcome to vxrn\"\n },\n args: {\n directory: {\n type: \"positional\",\n description: \"Directory to copy into\",\n default: \"\"\n },\n template: {\n type: \"string\",\n required: false,\n description: \"Choose a template in advance (avoid selection screen).\"\n },\n info: {\n type: \"boolean\",\n description: \"Output the post-install instructions for the template.\"\n }\n },\n async run(param) {\n var { args } = param;\n if (args.info) {\n var template = await getTemplateInfo(args.template);\n if (\"extraSteps\" in template) {\n await template.extraSteps({\n isFullClone: false,\n projectName: path.basename(cwd()),\n projectPath: cwd()\n });\n }\n return;\n }\n console.info();\n console.info(ansis.bold(\"Creating vxrn app...\"));\n await create({\n name: args.directory,\n template: args.template\n });\n }\n});\nrunMain(main);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;;;;AASA,SAAS,OAAO;CACd,QAAQ,KAAK,CAAC;AAChB;AACA,QAAQ,GAAG,WAAW,IAAI;AAC1B,QAAQ,GAAG,UAAU,IAAI;AACzB,SAAS,oBAAoB;CAC3B,IAAI;CACJ,IAAI,OAAO,cAAc,aAAa;EACpC,UAAU;CACZ,OAAO;EACL,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;CACvD;CACA,IAAI,cAAc,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc;CAC/D,IAAI,cAAc,KAAK,MAAM,aAAa,aAAa,OAAO,CAAC;CAC/D,OAAO,YAAY;AACrB;AACA,IAAI,OAAO,cAAc;CACvB,MAAM;EACJ,MAAM;EACN,SAAS,kBAAkB;EAC3B,aAAa;CACf;CACA,MAAM;EACJ,WAAW;GACT,MAAM;GACN,aAAa;GACb,SAAS;EACX;EACA,UAAU;GACR,MAAM;GACN,UAAU;GACV,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;CACF;CACA,MAAM,IAAI,OAAO;EACf,IAAI,EAAE,SAAS;EACf,IAAI,KAAK,MAAM;GACb,IAAI,WAAW,MAAM,gBAAgB,KAAK,QAAQ;GAClD,IAAI,gBAAgB,UAAU;IAC5B,MAAM,SAAS,WAAW;KACxB,aAAa;KACb,aAAa,KAAK,SAAS,IAAI,CAAC;KAChC,aAAa,IAAI;IACnB,CAAC;GACH;GACA;EACF;EACA,QAAQ,KAAK;EACb,QAAQ,KAAK,MAAM,KAAK,sBAAsB,CAAC;EAC/C,MAAM,OAAO;GACX,MAAM,KAAK;GACX,UAAU,KAAK;EACjB,CAAC;CACH;AACF,CAAC;AACD,QAAQ,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vxrn",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"bin": {
|
|
5
5
|
"create-vxrn": "run.js"
|
|
6
6
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
35
|
-
"@vxrn/utils": "2.6.
|
|
35
|
+
"@vxrn/utils": "2.6.4",
|
|
36
36
|
"ansis": "^3.1.0",
|
|
37
37
|
"async-retry": "1.3.1",
|
|
38
38
|
"citty": "^0.1.6",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"releaseSourceCommit": "
|
|
54
|
+
"releaseSourceCommit": "998d85218a91e5b25b16853238342fa410403e4d",
|
|
55
55
|
"repository": {
|
|
56
56
|
"type": "git",
|
|
57
57
|
"url": "git+https://github.com/onejs/one.git",
|
package/src/index.ts
CHANGED
|
@@ -19,10 +19,24 @@ function exit() {
|
|
|
19
19
|
process.on('SIGTERM', exit)
|
|
20
20
|
process.on('SIGINT', exit)
|
|
21
21
|
|
|
22
|
+
function getPackageVersion() {
|
|
23
|
+
let dirname
|
|
24
|
+
if (typeof __dirname !== 'undefined') {
|
|
25
|
+
// CommonJS
|
|
26
|
+
dirname = __dirname
|
|
27
|
+
} else {
|
|
28
|
+
// ESM
|
|
29
|
+
dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
30
|
+
}
|
|
31
|
+
const packagePath = path.join(dirname, '..', '..', 'package.json')
|
|
32
|
+
const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'))
|
|
33
|
+
return packageJson.version
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
const main = defineCommand({
|
|
23
37
|
meta: {
|
|
24
|
-
name: '
|
|
25
|
-
version:
|
|
38
|
+
name: 'create-vxrn',
|
|
39
|
+
version: getPackageVersion(),
|
|
26
40
|
description: 'Welcome to vxrn',
|
|
27
41
|
},
|
|
28
42
|
args: {
|
|
@@ -62,22 +76,3 @@ const main = defineCommand({
|
|
|
62
76
|
})
|
|
63
77
|
|
|
64
78
|
runMain(main)
|
|
65
|
-
|
|
66
|
-
function getPackageVersion() {
|
|
67
|
-
let dirname
|
|
68
|
-
if (typeof __dirname !== 'undefined') {
|
|
69
|
-
// CommonJS
|
|
70
|
-
dirname = __dirname
|
|
71
|
-
} else {
|
|
72
|
-
// ESM
|
|
73
|
-
dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
74
|
-
}
|
|
75
|
-
const packagePath = path.join(dirname, '..', '..', 'package.json')
|
|
76
|
-
const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'))
|
|
77
|
-
return packageJson.version
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (process.argv.includes('--version')) {
|
|
81
|
-
console.info(getPackageVersion())
|
|
82
|
-
process.exit(0)
|
|
83
|
-
}
|