create-vxrn 0.1.4 → 0.1.5
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/helpers/cloneStarter.js +6 -9
- package/dist/helpers/cloneStarter.js.map +1 -1
- package/dist/helpers/cloneStarter.native.js +6 -29
- package/dist/helpers/cloneStarter.native.js.map +2 -2
- package/dist/helpers/exec.js +25 -0
- package/dist/helpers/exec.js.map +6 -0
- package/dist/helpers/exec.native.js +50 -0
- package/dist/helpers/exec.native.js.map +6 -0
- package/package.json +2 -2
- package/src/helpers/cloneStarter.ts +1 -8
- package/src/helpers/exec.ts +8 -0
- package/dist/helpers/defaultTsConfig.js +0 -59
- package/dist/helpers/defaultTsConfig.js.map +0 -6
- package/dist/helpers/defaultTsConfig.native.js +0 -71
- package/dist/helpers/defaultTsConfig.native.js.map +0 -6
|
@@ -25,11 +25,8 @@ __export(cloneStarter_exports, {
|
|
|
25
25
|
cloneStarter: () => cloneStarter
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(cloneStarter_exports);
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
stdio: process.env.DEBUG ? "inherit" : "ignore",
|
|
31
|
-
...options
|
|
32
|
-
}), home = (0, import_node_os.homedir)(), vxrnDir = (0, import_node_path.join)(home, ".vxrn");
|
|
28
|
+
var import_node_os = require("node:os"), import_node_path = require("node:path"), import_ansis = __toESM(require("ansis")), import_fs_extra = require("fs-extra"), import_rimraf = require("rimraf"), import_exec = require("./exec");
|
|
29
|
+
const home = (0, import_node_os.homedir)(), vxrnDir = (0, import_node_path.join)(home, ".vxrn");
|
|
33
30
|
let targetGitDir = "";
|
|
34
31
|
const cloneStarter = async (template, resolvedProjectPath, projectName) => {
|
|
35
32
|
targetGitDir = (0, import_node_path.join)(vxrnDir, "vxrn", template.repo.url.split("/").at(-1)), console.info(), await setupVxrnDotDir(template);
|
|
@@ -48,23 +45,23 @@ async function setupVxrnDotDir(template, isRetry = !1) {
|
|
|
48
45
|
console.info("Cloning vxrn base directory"), console.info();
|
|
49
46
|
const sourceGitRepo = template.repo.url, sourceGitRepoSshFallback = template.repo.sshFallback, cmd = `git clone --branch ${branch} ${isInSubDir ? "--depth 1 --sparse --filter=blob:none " : ""}${sourceGitRepo} "${targetGitDir}"`;
|
|
50
47
|
try {
|
|
51
|
-
console.info(`$ ${cmd}`), console.info(), exec(cmd);
|
|
48
|
+
console.info(`$ ${cmd}`), console.info(), (0, import_exec.exec)(cmd);
|
|
52
49
|
} catch (error) {
|
|
53
50
|
if (cmd.includes("https://")) {
|
|
54
51
|
console.info("https failed - trying with ssh now...");
|
|
55
52
|
const sshCmd = cmd.replace(sourceGitRepo, sourceGitRepoSshFallback);
|
|
56
|
-
console.info(`$ ${sshCmd}`), console.info(), exec(sshCmd);
|
|
53
|
+
console.info(`$ ${sshCmd}`), console.info(), (0, import_exec.exec)(sshCmd);
|
|
57
54
|
} else
|
|
58
55
|
throw error;
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
if (isInSubDir) {
|
|
62
59
|
const cmd = `git sparse-checkout set ${template.repo.dir[0] ?? "."}`;
|
|
63
|
-
exec(cmd, { cwd: targetGitDir }), console.info();
|
|
60
|
+
(0, import_exec.exec)(cmd, { cwd: targetGitDir }), console.info();
|
|
64
61
|
}
|
|
65
62
|
try {
|
|
66
63
|
const cmd2 = `git pull --rebase --allow-unrelated-histories --depth 1 origin ${branch}`;
|
|
67
|
-
exec(cmd2, {
|
|
64
|
+
(0, import_exec.exec)(cmd2, {
|
|
68
65
|
cwd: targetGitDir
|
|
69
66
|
}), console.info();
|
|
70
67
|
} catch (err) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/helpers/cloneStarter.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"mappings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,KAAK,KAC9B,2BAA2B,SAAS,KAAK,aAEzC,MAAM,sBAAsB,MAAM,IACtC,aAAa,2CAA2C,EAC1D,GAAG,aAAa,KAAK,YAAY;AAEjC,QAAI;AACF,cAAQ,KAAK,KAAK,GAAG,EAAE,GACvB,QAAQ,KAAK,OACb,kBAAK,GAAG;AAAA,IACV,SAAS,OAAO;AACd,UAAI,IAAI,SAAS,UAAU,GAAG;AAC5B,gBAAQ,KAAK,uCAAuC;AACpD,cAAM,SAAS,IAAI,QAAQ,eAAe,wBAAwB;AAClE,gBAAQ,KAAK,KAAK,MAAM,EAAE,GAC1B,QAAQ,KAAK,OACb,kBAAK,MAAM;AAAA,MACb;AACE,cAAM;AAAA,IAEV;AAAA,EACF;AAOA,MAAI,YAAY;AACd,UAAM,MAAM,2BAA2B,SAAS,KAAK,IAAI,CAAC,KAAK,GAAG;AAClE,0BAAK,KAAK,EAAE,KAAK,aAAa,CAAC,GAC/B,QAAQ,KAAK;AAAA,EACf;AACA,MAAI;AACF,UAAM,OAAO,kEAAkE,MAAM;AACrF,0BAAK,MAAM;AAAA,MACT,KAAK;AAAA,IACP,CAAC,GACD,QAAQ,KAAK;AAAA,EACf,SAAS,KAAU;AACjB,YAAQ;AAAA,MACN,mBAAmB,IAAI,OAAO,IAAI,UAAU;AAAA,EAAa,IAAI,KAAK,KAAK,oBAAoB;AAAA,IAC7F,GACI,YACF,QAAQ;AAAA,MACN;AAAA,IACF,GACA,QAAQ,KAAK,CAAC,IAEhB,UAAM,wBAAO,YAAY,GACzB,MAAM,gBAAgB,UAAU,EAAI;AAAA,EACtC;AACF;",
|
|
5
5
|
"names": ["ansis"]
|
|
6
6
|
}
|
|
@@ -26,7 +26,7 @@ __export(cloneStarter_exports, {
|
|
|
26
26
|
cloneStarter: () => cloneStarter
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(cloneStarter_exports);
|
|
29
|
-
var
|
|
29
|
+
var import_node_os = require("node:os"), import_node_path = require("node:path"), import_ansis = __toESM(require("ansis")), import_fs_extra = require("fs-extra"), import_rimraf = require("rimraf"), import_exec = require("./exec");
|
|
30
30
|
function _array_like_to_array(arr, len) {
|
|
31
31
|
(len == null || len > arr.length) && (len = arr.length);
|
|
32
32
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -61,14 +61,6 @@ function _async_to_generator(fn) {
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function _define_property(obj, key, value) {
|
|
65
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
66
|
-
value,
|
|
67
|
-
enumerable: !0,
|
|
68
|
-
configurable: !0,
|
|
69
|
-
writable: !0
|
|
70
|
-
}) : obj[key] = value, obj;
|
|
71
|
-
}
|
|
72
64
|
function _iterable_to_array(iter) {
|
|
73
65
|
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
74
66
|
return Array.from(iter);
|
|
@@ -76,17 +68,6 @@ function _iterable_to_array(iter) {
|
|
|
76
68
|
function _non_iterable_spread() {
|
|
77
69
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
78
70
|
}
|
|
79
|
-
function _object_spread(target) {
|
|
80
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
81
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
82
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
83
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
84
|
-
}))), ownKeys.forEach(function(key) {
|
|
85
|
-
_define_property(target, key, source[key]);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return target;
|
|
89
|
-
}
|
|
90
71
|
function _to_consumable_array(arr) {
|
|
91
72
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
92
73
|
}
|
|
@@ -192,11 +173,7 @@ function _ts_generator(thisArg, body) {
|
|
|
192
173
|
};
|
|
193
174
|
}
|
|
194
175
|
}
|
|
195
|
-
var
|
|
196
|
-
return (0, import_node_child_process.execSync)(cmd, _object_spread({
|
|
197
|
-
stdio: process.env.DEBUG ? "inherit" : "ignore"
|
|
198
|
-
}, options));
|
|
199
|
-
}, home = (0, import_node_os.homedir)(), vxrnDir = (0, import_node_path.join)(home, ".vxrn"), targetGitDir = "", cloneStarter = function() {
|
|
176
|
+
var home = (0, import_node_os.homedir)(), vxrnDir = (0, import_node_path.join)(home, ".vxrn"), targetGitDir = "", cloneStarter = function() {
|
|
200
177
|
var _ref = _async_to_generator(function(template, resolvedProjectPath, projectName) {
|
|
201
178
|
var starterDir;
|
|
202
179
|
return _ts_generator(this, function(_state) {
|
|
@@ -255,10 +232,10 @@ function _setupVxrnDotDir() {
|
|
|
255
232
|
];
|
|
256
233
|
console.info("Cloning vxrn base directory"), console.info(), sourceGitRepo = template.repo.url, sourceGitRepoSshFallback = template.repo.sshFallback, cmd = "git clone --branch ".concat(branch, " ").concat(isInSubDir ? "--depth 1 --sparse --filter=blob:none " : "").concat(sourceGitRepo, ' "').concat(targetGitDir, '"');
|
|
257
234
|
try {
|
|
258
|
-
console.info("$ ".concat(cmd)), console.info(), exec(cmd);
|
|
235
|
+
console.info("$ ".concat(cmd)), console.info(), (0, import_exec.exec)(cmd);
|
|
259
236
|
} catch (error) {
|
|
260
237
|
if (cmd.includes("https://"))
|
|
261
|
-
console.info("https failed - trying with ssh now..."), sshCmd = cmd.replace(sourceGitRepo, sourceGitRepoSshFallback), console.info("$ ".concat(sshCmd)), console.info(), exec(sshCmd);
|
|
238
|
+
console.info("https failed - trying with ssh now..."), sshCmd = cmd.replace(sourceGitRepo, sourceGitRepoSshFallback), console.info("$ ".concat(sshCmd)), console.info(), (0, import_exec.exec)(sshCmd);
|
|
262
239
|
else
|
|
263
240
|
throw error;
|
|
264
241
|
}
|
|
@@ -274,7 +251,7 @@ function _setupVxrnDotDir() {
|
|
|
274
251
|
case 4:
|
|
275
252
|
_state.sent() || (console.error("Corrupt Vxrn directory, please delete ".concat(targetGitDir, " and re-run")), process.exit(1)), _state.label = 5;
|
|
276
253
|
case 5:
|
|
277
|
-
isInSubDir && (cmd1 = "git sparse-checkout set ".concat((_template_repo_dir_ = template.repo.dir[0]) !== null && _template_repo_dir_ !== void 0 ? _template_repo_dir_ : "."), exec(cmd1, {
|
|
254
|
+
isInSubDir && (cmd1 = "git sparse-checkout set ".concat((_template_repo_dir_ = template.repo.dir[0]) !== null && _template_repo_dir_ !== void 0 ? _template_repo_dir_ : "."), (0, import_exec.exec)(cmd1, {
|
|
278
255
|
cwd: targetGitDir
|
|
279
256
|
}), console.info()), _state.label = 6;
|
|
280
257
|
case 6:
|
|
@@ -283,7 +260,7 @@ function _setupVxrnDotDir() {
|
|
|
283
260
|
7,
|
|
284
261
|
,
|
|
285
262
|
10
|
|
286
|
-
]), cmd2 = "git pull --rebase --allow-unrelated-histories --depth 1 origin ".concat(branch), exec(cmd2, {
|
|
263
|
+
]), cmd2 = "git pull --rebase --allow-unrelated-histories --depth 1 origin ".concat(branch), (0, import_exec.exec)(cmd2, {
|
|
287
264
|
cwd: targetGitDir
|
|
288
265
|
}), console.info(), [
|
|
289
266
|
3,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/helpers/Users/n8/vxrn/packages/create-vxrn/src/helpers/cloneStarter.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAwB,oBACxB,mBAAqB,sBAErB,eAAkB,2BAClB,kBAAoD,qBACpD,gBAAuB,mBAGvB,cAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,SAASI,KAAKO,IAAI,CAAA,OAAE,QAApBX,wBAAAA,SAAAA,sBAAwB,GAAA,OAC/DgC,kBAAKT,MAAK;YAAEe,KAAKxC;UAAa,CAAA,GAC9BU,QAAQC,KAAI;;;;;;;cAGNgB,OAAQ,kEAAwE,OAAPN,MAAAA,OAC/Ea,kBAAKP,MAAM;YACTa,KAAKxC;UACP,CAAA,GACAU,QAAQC,KAAI;;;;;AACLiB,uBAAAA,OAAAA,KAAAA,GACPlB,QAAQC,KACL,mBAAiCQ,OAAfS,IAAIa,SAAQ,GAAA,EAA6D,OAA1DtB,UAAW;EAAsB,OAAVS,IAAIc,KAAK,IAAK,oBAAA,CAAA,GAErEvB,YACFT,QAAQC,KACL,gHAAA,GAEH2B,QAAQC,KAAK,CAAA,IAEf;;gBAAMI,wBAAO3C,YAAAA;;;AAAb,wBAAA,KAAA,GACA;;YAAMY,gBAAgBV,UAAU,EAAA;;;AAAhC,wBAAA,KAAA;;;;;;;;;;EAEJ,CAAA,GApEeU,iBAAAA,MAAAA,MAAAA,SAAAA;;",
|
|
5
|
+
"names": ["home", "homedir", "vxrnDir", "join", "targetGitDir", "cloneStarter", "template", "resolvedProjectPath", "projectName", "starterDir", "repo", "url", "split", "at", "console", "info", "setupVxrnDotDir", "dir", "ansis", "blueBright", "copy", "rimraf", "green", "isRetry", "repoRoot", "branch", "isInSubDir", "sourceGitRepo", "sourceGitRepoSshFallback", "cmd", "sshCmd", "cmd2", "err", "__dirname", "ensureDir", "length", "pathExists", "sshFallback", "exec", "error", "includes", "replace", "process", "exit", "cwd", "message", "stack", "remove"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var exec_exports = {};
|
|
16
|
+
__export(exec_exports, {
|
|
17
|
+
exec: () => exec
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(exec_exports);
|
|
20
|
+
var import_node_child_process = require("node:child_process");
|
|
21
|
+
const exec = (cmd, options) => (0, import_node_child_process.execSync)(cmd, {
|
|
22
|
+
stdio: process.env.DEBUG ? "inherit" : "ignore",
|
|
23
|
+
...options
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=exec.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var exec_exports = {};
|
|
17
|
+
__export(exec_exports, {
|
|
18
|
+
exec: () => exec
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(exec_exports);
|
|
21
|
+
var import_node_child_process = require("node:child_process");
|
|
22
|
+
function _define_property(obj, key, value) {
|
|
23
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
|
+
value,
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
configurable: !0,
|
|
27
|
+
writable: !0
|
|
28
|
+
}) : obj[key] = value, obj;
|
|
29
|
+
}
|
|
30
|
+
function _object_spread(target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
33
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
+
}))), ownKeys.forEach(function(key) {
|
|
36
|
+
_define_property(target, key, source[key]);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
}
|
|
41
|
+
var exec = function(cmd, options) {
|
|
42
|
+
return (0, import_node_child_process.execSync)(cmd, _object_spread({
|
|
43
|
+
stdio: process.env.DEBUG ? "inherit" : "ignore"
|
|
44
|
+
}, options));
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
exec
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=exec.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/helpers/Users/n8/vxrn/packages/create-vxrn/src/helpers/exec.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,gCAAyB;;;;;;;;;;;;;;;;;;;;AAElB,IAAMA,OAAO,SAACC,KAAaC,SAAAA;AAChC,aAAOC,oCAASF,KAAK,eAAA;IACnBG,OAAOC,QAAQC,IAAIC,QAAQ,YAAY;KACpCL,OAAAA,CAAAA;AAEP;",
|
|
5
|
+
"names": ["exec", "cmd", "options", "execSync", "stdio", "process", "env", "DEBUG"]
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vxrn",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"bin": "./run.js",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cpy": "^11.0.1",
|
|
24
24
|
"detect-package-manager": "^3.0.1",
|
|
25
25
|
"fs-extra": "^11.2.0",
|
|
26
|
-
"prompts": "2.
|
|
26
|
+
"prompts": "^2.4.2",
|
|
27
27
|
"rimraf": "^5.0.1",
|
|
28
28
|
"validate-npm-package-name": "3.0.0"
|
|
29
29
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { execSync } from 'node:child_process'
|
|
2
1
|
import { homedir } from 'node:os'
|
|
3
2
|
import { join } from 'node:path'
|
|
4
3
|
|
|
@@ -7,13 +6,7 @@ import { copy, ensureDir, pathExists, remove } from 'fs-extra'
|
|
|
7
6
|
import { rimraf } from 'rimraf'
|
|
8
7
|
|
|
9
8
|
import type { templates } from '../templates'
|
|
10
|
-
|
|
11
|
-
const exec = (cmd: string, options?: Parameters<typeof execSync>[1]) => {
|
|
12
|
-
return execSync(cmd, {
|
|
13
|
-
stdio: process.env.DEBUG ? 'inherit' : 'ignore',
|
|
14
|
-
...options,
|
|
15
|
-
})
|
|
16
|
-
}
|
|
9
|
+
import { exec } from './exec'
|
|
17
10
|
|
|
18
11
|
const home = homedir()
|
|
19
12
|
const vxrnDir = join(home, '.vxrn')
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var defaultTsConfig_exports = {};
|
|
16
|
-
__export(defaultTsConfig_exports, {
|
|
17
|
-
default: () => defaultTsConfig_default
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(defaultTsConfig_exports);
|
|
20
|
-
var defaultTsConfig_default = {
|
|
21
|
-
compilerOptions: {
|
|
22
|
-
baseUrl: ".",
|
|
23
|
-
rootDir: ".",
|
|
24
|
-
outDir: "dist",
|
|
25
|
-
importHelpers: !0,
|
|
26
|
-
allowJs: !1,
|
|
27
|
-
allowSyntheticDefaultImports: !0,
|
|
28
|
-
forceConsistentCasingInFileNames: !0,
|
|
29
|
-
declaration: !0,
|
|
30
|
-
downlevelIteration: !0,
|
|
31
|
-
strict: !0,
|
|
32
|
-
esModuleInterop: !0,
|
|
33
|
-
inlineSourceMap: !0,
|
|
34
|
-
preserveSymlinks: !0,
|
|
35
|
-
jsx: "react-jsx",
|
|
36
|
-
module: "ESNext",
|
|
37
|
-
moduleResolution: "node",
|
|
38
|
-
noEmit: !1,
|
|
39
|
-
noEmitOnError: !1,
|
|
40
|
-
noImplicitAny: !1,
|
|
41
|
-
noImplicitReturns: !1,
|
|
42
|
-
noUnusedLocals: !1,
|
|
43
|
-
noUnusedParameters: !1,
|
|
44
|
-
preserveConstEnums: !0,
|
|
45
|
-
removeComments: !1,
|
|
46
|
-
skipLibCheck: !0,
|
|
47
|
-
sourceMap: !1,
|
|
48
|
-
strictNullChecks: !0,
|
|
49
|
-
target: "es2020",
|
|
50
|
-
types: ["node", "react"],
|
|
51
|
-
lib: ["dom", "esnext"]
|
|
52
|
-
},
|
|
53
|
-
exclude: ["**/test", "**/dist", "**/types", "**/__tests__"],
|
|
54
|
-
typeAcquisition: {
|
|
55
|
-
enable: !0
|
|
56
|
-
},
|
|
57
|
-
extends: "expo/tsconfig.base"
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=defaultTsConfig.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/helpers/defaultTsConfig.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,0BAAQ;AAAA,EACb,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,SAAS;AAAA,IACT,8BAA8B;AAAA,IAC9B,kCAAkC;AAAA,IAClC,aAAa;AAAA,IACb,oBAAoB;AAAA,IACpB,QAAQ;AAAA,IACR,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,WAAW;AAAA,IACX,kBAAkB;AAAA,IAClB,QAAQ;AAAA,IACR,OAAO,CAAC,QAAQ,OAAO;AAAA,IACvB,KAAK,CAAC,OAAO,QAAQ;AAAA,EACvB;AAAA,EACA,SAAS,CAAC,WAAW,WAAW,YAAY,cAAc;AAAA,EAC1D,iBAAiB;AAAA,IACf,QAAQ;AAAA,EACV;AAAA,EACA,SAAS;AACX;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var defaultTsConfig_exports = {};
|
|
17
|
-
__export(defaultTsConfig_exports, {
|
|
18
|
-
default: () => defaultTsConfig_default
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(defaultTsConfig_exports);
|
|
21
|
-
var defaultTsConfig_default = {
|
|
22
|
-
compilerOptions: {
|
|
23
|
-
baseUrl: ".",
|
|
24
|
-
rootDir: ".",
|
|
25
|
-
outDir: "dist",
|
|
26
|
-
importHelpers: !0,
|
|
27
|
-
allowJs: !1,
|
|
28
|
-
allowSyntheticDefaultImports: !0,
|
|
29
|
-
forceConsistentCasingInFileNames: !0,
|
|
30
|
-
declaration: !0,
|
|
31
|
-
downlevelIteration: !0,
|
|
32
|
-
strict: !0,
|
|
33
|
-
esModuleInterop: !0,
|
|
34
|
-
inlineSourceMap: !0,
|
|
35
|
-
preserveSymlinks: !0,
|
|
36
|
-
jsx: "react-jsx",
|
|
37
|
-
module: "ESNext",
|
|
38
|
-
moduleResolution: "node",
|
|
39
|
-
noEmit: !1,
|
|
40
|
-
noEmitOnError: !1,
|
|
41
|
-
noImplicitAny: !1,
|
|
42
|
-
noImplicitReturns: !1,
|
|
43
|
-
noUnusedLocals: !1,
|
|
44
|
-
noUnusedParameters: !1,
|
|
45
|
-
preserveConstEnums: !0,
|
|
46
|
-
removeComments: !1,
|
|
47
|
-
skipLibCheck: !0,
|
|
48
|
-
sourceMap: !1,
|
|
49
|
-
strictNullChecks: !0,
|
|
50
|
-
target: "es2020",
|
|
51
|
-
types: [
|
|
52
|
-
"node",
|
|
53
|
-
"react"
|
|
54
|
-
],
|
|
55
|
-
lib: [
|
|
56
|
-
"dom",
|
|
57
|
-
"esnext"
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
exclude: [
|
|
61
|
-
"**/test",
|
|
62
|
-
"**/dist",
|
|
63
|
-
"**/types",
|
|
64
|
-
"**/__tests__"
|
|
65
|
-
],
|
|
66
|
-
typeAcquisition: {
|
|
67
|
-
enable: !0
|
|
68
|
-
},
|
|
69
|
-
extends: "expo/tsconfig.base"
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=defaultTsConfig.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/helpers/Users/n8/vxrn/packages/create-vxrn/src/helpers/defaultTsConfig.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;IAAA,0BAAe;EACbA,iBAAiB;IACfC,SAAS;IACTC,SAAS;IACTC,QAAQ;IACRC,eAAe;IACfC,SAAS;IACTC,8BAA8B;IAC9BC,kCAAkC;IAClCC,aAAa;IACbC,oBAAoB;IACpBC,QAAQ;IACRC,iBAAiB;IACjBC,iBAAiB;IACjBC,kBAAkB;IAClBC,KAAK;IACLC,QAAQ;IACRC,kBAAkB;IAClBC,QAAQ;IACRC,eAAe;IACfC,eAAe;IACfC,mBAAmB;IACnBC,gBAAgB;IAChBC,oBAAoB;IACpBC,oBAAoB;IACpBC,gBAAgB;IAChBC,cAAc;IACdC,WAAW;IACXC,kBAAkB;IAClBC,QAAQ;IACRC,OAAO;MAAC;MAAQ;;IAChBC,KAAK;MAAC;MAAO;;EACf;EACAC,SAAS;IAAC;IAAW;IAAW;IAAY;;EAC5CC,iBAAiB;IACfC,QAAQ;EACV;EACAC,SAAS;AACX;",
|
|
5
|
-
"names": ["compilerOptions", "baseUrl", "rootDir", "outDir", "importHelpers", "allowJs", "allowSyntheticDefaultImports", "forceConsistentCasingInFileNames", "declaration", "downlevelIteration", "strict", "esModuleInterop", "inlineSourceMap", "preserveSymlinks", "jsx", "module", "moduleResolution", "noEmit", "noEmitOnError", "noImplicitAny", "noImplicitReturns", "noUnusedLocals", "noUnusedParameters", "preserveConstEnums", "removeComments", "skipLibCheck", "sourceMap", "strictNullChecks", "target", "types", "lib", "exclude", "typeAcquisition", "enable", "extends"]
|
|
6
|
-
}
|