create-vxrn 1.1.538 → 1.1.539

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.
Files changed (33) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/cjs/create.native.js +98 -77
  3. package/dist/cjs/create.native.js.map +1 -6
  4. package/dist/cjs/helpers/cloneStarter.native.js +48 -39
  5. package/dist/cjs/helpers/cloneStarter.native.js.map +1 -6
  6. package/dist/cjs/helpers/getProjectName.native.js +48 -37
  7. package/dist/cjs/helpers/getProjectName.native.js.map +1 -6
  8. package/dist/cjs/helpers/getTemplateInfo.native.js +50 -36
  9. package/dist/cjs/helpers/getTemplateInfo.native.js.map +1 -6
  10. package/dist/cjs/helpers/installDependencies.native.js +20 -16
  11. package/dist/cjs/helpers/installDependencies.native.js.map +1 -6
  12. package/dist/cjs/helpers/validateNpmPackage.native.js +24 -21
  13. package/dist/cjs/helpers/validateNpmPackage.native.js.map +1 -6
  14. package/dist/cjs/index.native.js +34 -20
  15. package/dist/cjs/index.native.js.map +1 -6
  16. package/dist/cjs/steps/bare.native.js +60 -48
  17. package/dist/cjs/steps/bare.native.js.map +1 -6
  18. package/dist/cjs/steps/fullstack.native.js +37 -19
  19. package/dist/cjs/steps/fullstack.native.js.map +1 -6
  20. package/dist/cjs/steps/one.native.js +51 -29
  21. package/dist/cjs/steps/one.native.js.map +1 -6
  22. package/dist/cjs/steps/types.native.js +9 -5
  23. package/dist/cjs/steps/types.native.js.map +1 -6
  24. package/dist/cjs/templates.native.js +35 -49
  25. package/dist/cjs/templates.native.js.map +1 -6
  26. package/dist/esm/create.native.js +9 -6
  27. package/dist/esm/create.native.js.map +1 -1
  28. package/dist/esm/helpers/cloneStarter.native.js +2 -2
  29. package/dist/esm/helpers/getProjectName.native.js +1 -1
  30. package/dist/esm/index.native.js +4 -4
  31. package/dist/esm/steps/bare.native.js +1 -1
  32. package/dist/esm/steps/one.native.js +1 -1
  33. package/package.json +3 -3
@@ -1,52 +1,66 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var getTemplateInfo_exports = {};
25
35
  __export(getTemplateInfo_exports, {
26
36
  getTemplateInfo: () => getTemplateInfo
27
37
  });
28
38
  module.exports = __toCommonJS(getTemplateInfo_exports);
29
- var import_prompts = __toESM(require("prompts")), import_templates = require("../templates"), validTemplates = import_templates.templates.map(function(param) {
30
- var { value } = param;
31
- return value;
32
- }).join(", "), getTemplateInfo = async function(template) {
33
- var res = getValidTemplate(template);
34
- return template && !res && (console.warn(`template ${template} is not valid. valid options: ${validTemplates}`), process.exit(1)), res || (console.info(), template = (await (0, import_prompts.default)({
35
- name: "template",
36
- type: "select",
37
- message: "Template",
38
- choices: import_templates.templates.filter(function(t) {
39
- return !t.hidden;
40
- })
41
- })).template), res = getValidTemplate(`${template}`), res || (console.warn(`template ${template} is not valid. valid options: ${validTemplates}`), process.exit(1)), res;
42
- }, getValidTemplate = function(template) {
43
- return typeof template == "string" && import_templates.templates.find(function(param) {
44
- var { value } = param;
45
- return value === template;
46
- });
47
- };
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- getTemplateInfo
51
- });
52
- //# sourceMappingURL=getTemplateInfo.js.map
39
+ var import_prompts = __toESM(require("prompts")),
40
+ import_templates = require("../templates.native.js"),
41
+ validTemplates = import_templates.templates.map(function (param) {
42
+ var {
43
+ value
44
+ } = param;
45
+ return value;
46
+ }).join(", "),
47
+ getTemplateInfo = async function (template) {
48
+ var res = getValidTemplate(template);
49
+ return template && !res && (console.warn(`template ${template} is not valid. valid options: ${validTemplates}`), process.exit(1)), res || (console.info(), template = (await (0, import_prompts.default)({
50
+ name: "template",
51
+ type: "select",
52
+ message: "Template",
53
+ choices: import_templates.templates.filter(function (t) {
54
+ return !t.hidden;
55
+ })
56
+ })).template), res = getValidTemplate(`${template}`), res || (console.warn(`template ${template} is not valid. valid options: ${validTemplates}`), process.exit(1)), res;
57
+ },
58
+ getValidTemplate = function (template) {
59
+ return typeof template == "string" && import_templates.templates.find(function (param) {
60
+ var {
61
+ value
62
+ } = param;
63
+ return value === template;
64
+ });
65
+ };
66
+ //# sourceMappingURL=getTemplateInfo.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/getTemplateInfo.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;qBAAoB,6BAEpB,mBAA0B,yBAEpBA,iBAAiBC,2BAAUC,IAAI,SAAA,OAAA;MAAC,EAAEC,MAAK,IAAE;SAAKA;GAAOC,KAAK,IAAA,GAEnDC,kBAAkB,eAAOC,UAAAA;AACpC,MAAIC,MAAMC,iBAAiBF,QAAAA;AAC3B,SAAIA,YAAY,CAACC,QACfE,QAAQC,KAAK,YAAYJ,QAAAA,iCAAyCN,cAAAA,EAAgB,GAClFW,QAAQC,KAAK,CAAA,IAEVL,QACHE,QAAQI,KAAI,GACZP,YACE,UAAMQ,eAAAA,SAAQ;IACZC,MAAM;IACNC,MAAM;IACNC,SAAS;IACTC,SAASjB,2BAAUkB,OAAO,SAACC,GAAAA;aAAM,CAACA,EAAEC;;EACtC,CAAA,GACAf,WAEJC,MAAMC,iBAAiB,GAAGF,QAAAA,EAAU,GAC/BC,QACHE,QAAQC,KAAK,YAAYJ,QAAAA,iCAAyCN,cAAAA,EAAgB,GAClFW,QAAQC,KAAK,CAAA,IAERL;AACT,GAEMC,mBAAmB,SAACF,UAAAA;SACxB,OAAOA,YAAa,YAAYL,2BAAUqB,KAAK,SAAA,OAAA;QAAC,EAAEnB,MAAK,IAAE;WAAKA,UAAUG;;;",
5
- "names": ["validTemplates", "templates", "map", "value", "join", "getTemplateInfo", "template", "res", "getValidTemplate", "console", "warn", "process", "exit", "info", "prompts", "name", "type", "message", "choices", "filter", "t", "hidden", "find"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getTemplateInfo_exports","__export","getTemplateInfo","module","exports","import_prompts","__toESM","require","import_templates","validTemplates","templates","map","param","join","template","res","getValidTemplate","console","warn","process","exit","info","default","name","type","message"],"sources":["../../../src/helpers/getTemplateInfo.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAoB,CAAAK,uBAEpB;AAEA,IAAAK,cAAM,GAAAC,OAAiB,CAAAC,OAAA;EAAUC,gBAAa,GAAMD,OAAO,yBAE9C;EAAAE,cAAkB,GAAAD,gBAAkE,CAAAE,SAAA,CAAAC,GAAA,WAAAC,KAAA;IAC/F,IAAI;MAAAb;IAAM,IAAAa,KAAA;IACV,OAAIb,KAAA;EAOc,GAAAc,IACZ,KAAM;EAAAX,eAAA,kBAAAA,CAAAY,QAAA;IAAA,IACNC,GAAA,GAAMC,gBAAA,CAAAF,QAAA;IAAA,OACNA,QAAS,KAAAC,GAAA,KAAAE,OAAA,CAAAC,IAAA,aAAAJ,QAAA,iCAAAL,cAAA,KAAAU,OAAA,CAAAC,IAAA,MAAAL,GAAA,KAAAE,OAAA,CAAAI,IAAA,IAAAP,QAAA,cAAAT,cAAA,CAAAiB,OAAA;MACTC,IAAA,YAAS;MACVC,IACD,UAEJ;MAQIC,OAAA,YAAoB","ignoreList":[]}
@@ -1,18 +1,25 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  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);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var installDependencies_exports = {};
17
24
  __export(installDependencies_exports, {
18
25
  installDependencies: () => installDependencies
@@ -21,8 +28,9 @@ module.exports = __toCommonJS(installDependencies_exports);
21
28
  var import_utils = require("@vxrn/utils");
22
29
  async function installDependencies(projectRoot, packageManager) {
23
30
  var options = {
24
- cwd: projectRoot
25
- }, command;
31
+ cwd: projectRoot
32
+ },
33
+ command;
26
34
  switch (packageManager) {
27
35
  case "bun":
28
36
  command = "bun install";
@@ -43,8 +51,4 @@ async function installDependencies(projectRoot, packageManager) {
43
51
  throw console.error(`Failed to install dependencies using ${packageManager}:`, error), error;
44
52
  }
45
53
  }
46
- // Annotate the CommonJS export names for ESM import in node:
47
- 0 && (module.exports = {
48
- installDependencies
49
- });
50
- //# sourceMappingURL=installDependencies.js.map
54
+ //# sourceMappingURL=installDependencies.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/installDependencies.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;mBAA4B;AAE5B,eAAsBA,oBACpBC,aACAC,gBAA+C;AAE/C,MAAMC,UAAU;IAAEC,KAAKH;EAAY,GAC/BI;AAEJ,UAAQH,gBAAAA;IACN,KAAK;AACHG,gBAAU;AACV;IACF,KAAK;AACHA,gBAAU;AACV;IACF,KAAK;AACHA,gBAAU;AACV;IACF;AACEA,gBAAU;AACV;EACJ;AAEA,MAAI;AACF,cAAMC,0BAAYD,SAASF,OAAAA,GAC3BI,QAAQC,KAAK,GAAGN,cAAAA,kCAAgD;EAClE,SAASO,OAAO;AACdF,kBAAQE,MAAM,wCAAwCP,cAAAA,KAAmBO,KAAAA,GACnEA;EACR;AACF;",
5
- "names": ["installDependencies", "projectRoot", "packageManager", "options", "cwd", "command", "execPromise", "console", "info", "error"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","installDependencies_exports","__export","installDependencies","module","exports","import_utils","require","projectRoot","packageManager","options","cwd","command","execPromise","console","info","error"],"sources":["../../../src/helpers/installDependencies.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA4B,CAAAK,2BAAA;AAE5B,IAAAK,YAAsB,GAAAC,OAAA,cACpB;AAGA,eAAMJ,mBAAiBA,CAAAK,WAAY,EAAAC,cAAA;EACnC,IAAIC,OAAA;MAEJC,GAAA,EAAAH;IAAwB;IACtBI,OAAK;EACH,QAAAH,cAAU;IACV;MACFG,OAAK;MACH;IACA;MACFA,OAAK;MACH;IACA;MACFA,OAAA;MACE;IACA;MACJA,OAAA;MAEI;EACF;EAEF;IACE,UAAAN,YAAc,CAAAO,WAAA,EAAAD,OAAA,EAAAF,OAAA,GAAAI,OAAwC,CAAAC,IAAA,IAAAN,cAAwB,kCACxE;EACR,SAAAO,KAAA;IACF,MAAAF,OAAA,CAAAE,KAAA,yCAAAP,cAAA,KAAAO,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -1,26 +1,36 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var validateNpmPackage_exports = {};
25
35
  __export(validateNpmPackage_exports, {
26
36
  validateNpmName: () => validateNpmName
@@ -33,14 +43,7 @@ function validateNpmName(name) {
33
43
  valid: !0
34
44
  } : {
35
45
  valid: !1,
36
- problems: [
37
- ...nameValidation.errors || [],
38
- ...nameValidation.warnings || []
39
- ]
46
+ problems: [...(nameValidation.errors || []), ...(nameValidation.warnings || [])]
40
47
  };
41
48
  }
42
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- validateNpmName
45
- });
46
- //# sourceMappingURL=validateNpmPackage.js.map
49
+ //# sourceMappingURL=validateNpmPackage.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/validateNpmPackage.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;uCAAgC;AAEzB,SAASA,gBAAgBC,MAAY;AAI1C,MAAMC,qBAAiBC,iCAAAA,SAAoBF,IAAAA;AAC3C,SAAIC,eAAeE,sBACV;IAAEC,OAAO;EAAK,IAGhB;IACLA,OAAO;IACPC,UAAU;SAAKJ,eAAeK,UAAU,CAAA;SAASL,eAAeM,YAAY,CAAA;;EAC9E;AACF;",
5
- "names": ["validateNpmName", "name", "nameValidation", "validateProjectName", "validForNewPackages", "valid", "problems", "errors", "warnings"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","validateNpmPackage_exports","__export","validateNpmName","module","exports","import_validate_npm_package_name","__toESM","require","name","nameValidation","default","validForNewPackages","valid"],"sources":["../../../src/helpers/validateNpmPackage.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,0BAAgC;AAEzB,IAAAK,gCAGL,GAAAC,OAAA,CAAAC,OAAA;AACA,SAAML,gBAAAM,IAAiB;EACvB,IAAAC,cAAI,IAAe,GAAAJ,gCACI,CAAAK,OAGhB,EAAAF,IAAA;EAAA,OACLC,cAAO,CAAAE,mBAAA;IACPC,KAAA;EACF;IACFA,KAAA","ignoreList":[]}
@@ -1,25 +1,36 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
+
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __getProtoOf = Object.getPrototypeOf,
9
+ __hasOwnProp = Object.prototype.hasOwnProperty;
8
10
  var __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 });
11
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
12
+ get: () => from[key],
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
12
15
  return to;
13
16
  };
14
17
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
15
- // If the importer is in node compatibility mode or this is not an ESM
16
- // file that has been converted to a CommonJS file using a Babel-
17
- // compatible transform (i.e. "__esModule" has not been set), then set
18
- // "default" to the CommonJS "module.exports" for node compatibility.
19
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
20
- mod
21
- ));
22
- var import_ansis = __toESM(require("ansis")), import_citty = require("citty"), import_node_path = __toESM(require("node:path")), import_node_process = require("node:process"), import_getTemplateInfo = require("./helpers/getTemplateInfo"), import_create = require("./create"), import_node_url = require("node:url"), import_node_fs = require("node:fs");
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: !0
25
+ }) : target, mod));
26
+ var import_ansis = __toESM(require("ansis")),
27
+ import_citty = require("citty"),
28
+ import_path = __toESM(require("path")),
29
+ import_process = require("process"),
30
+ import_getTemplateInfo = require("./helpers/getTemplateInfo.native.js"),
31
+ import_create = require("./create.native.js"),
32
+ import_url = require("url"),
33
+ import_fs = require("fs");
23
34
  const import_meta = {};
24
35
  function exit() {
25
36
  process.exit(0);
@@ -49,14 +60,16 @@ var main = (0, import_citty.defineCommand)({
49
60
  }
50
61
  },
51
62
  async run(param) {
52
- var { args } = param;
63
+ var {
64
+ args
65
+ } = param;
53
66
  if (args.info) {
54
67
  var template = await (0, import_getTemplateInfo.getTemplateInfo)(args.template);
55
- "extraSteps" in template && await template.extraSteps({
68
+ "extraSteps" in template && (await template.extraSteps({
56
69
  isFullClone: !1,
57
- projectName: import_node_path.default.basename((0, import_node_process.cwd)()),
58
- projectPath: (0, import_node_process.cwd)()
59
- });
70
+ projectName: import_path.default.basename((0, import_process.cwd)()),
71
+ projectPath: (0, import_process.cwd)()
72
+ }));
60
73
  return;
61
74
  }
62
75
  console.info(), console.info(import_ansis.default.bold("Creating vxrn app...")), await (0, import_create.create)({
@@ -67,9 +80,10 @@ var main = (0, import_citty.defineCommand)({
67
80
  (0, import_citty.runMain)(main);
68
81
  function getPackageVersion() {
69
82
  var dirname;
70
- typeof __dirname < "u" ? dirname = __dirname : dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
71
- var packagePath = import_node_path.default.join(dirname, "..", "..", "package.json"), packageJson = JSON.parse((0, import_node_fs.readFileSync)(packagePath, "utf-8"));
83
+ typeof __dirname < "u" ? dirname = __dirname : dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));
84
+ var packagePath = import_path.default.join(dirname, "..", "..", "package.json"),
85
+ packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, "utf-8"));
72
86
  return packageJson.version;
73
87
  }
74
88
  process.argv.includes("--version") && (console.info(getPackageVersion()), process.exit(0));
75
- //# sourceMappingURL=index.js.map
89
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAGA,mBAAkB,2BAClB,eAAuC,kBACvC,mBAAiB,+BACjB,sBAAoB,yBACpB,yBAAgC,sCAChC,gBAAuB,qBACvB,kBAA8B,qBAC9B,iBAA6B;;AAI7B,SAASA,OAAAA;AACPC,UAAQD,KAAK,CAAA;AACf;AAEAC,QAAQC,GAAG,WAAWF,IAAAA;AACtBC,QAAQC,GAAG,UAAUF,IAAAA;AAErB,IAAMG,WAAOC,4BAAc;EACzBC,MAAM;IACJC,MAAM;IACNC,SAAS;IACTC,aAAa;EACf;EACAC,MAAM;IACJC,WAAW;MACTC,MAAM;MACNH,aAAa;MACbI,SAAS;IACX;IACAC,UAAU;MACRF,MAAM;MACNG,UAAU;MACVN,aAAa;IACf;IACAO,MAAM;MACJJ,MAAM;MACNH,aAAa;IACf;EACF;EACA,MAAMQ,IAAI,OAAQ;QAAR,EAAEP,KAAI,IAAN;AACR,QAAIA,KAAKM,MAAM;AACb,UAAIF,WAAW,UAAMI,wCAAgBR,KAAKI,QAAQ;AAClD,MAAI,gBAAgBA,YAClB,MAAMA,SAASK,WAAW;QACxBC,aAAa;QACbC,aAAaC,iBAAAA,QAAKC,aAASC,yBAAAA,CAAAA;QAC3BC,iBAAaD,yBAAAA;MACf,CAAA;AAEF;IACF;AAEAE,YAAQV,KAAI,GACZU,QAAQV,KAAKW,aAAAA,QAAMC,KAAK,sBAAA,CAAA,GAExB,UAAMC,sBAAO;MAAEf,UAAUJ,KAAKI;IAAS,CAAA;EACzC;AACF,CAAA;IAEAgB,sBAAQ1B,IAAAA;AAER,SAAS2B,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUV,iBAAAA,QAAKU,YAAQE,+BAAc,YAAYC,GAAG,CAAA;AAEtD,MAAMC,cAAcd,iBAAAA,QAAKe,KAAKL,SAAS,MAAM,MAAM,cAAA,GAC7CM,cAAcC,KAAKC,UAAMC,6BAAaL,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAY9B;AACrB;AAEIN,QAAQwC,KAAKC,SAAS,WAAA,MACxBjB,QAAQV,KAAKe,kBAAAA,CAAAA,GACb7B,QAAQD,KAAK,CAAA;",
5
- "names": ["exit", "process", "on", "main", "defineCommand", "meta", "name", "version", "description", "args", "directory", "type", "default", "template", "required", "info", "run", "getTemplateInfo", "extraSteps", "isFullClone", "projectName", "path", "basename", "cwd", "projectPath", "console", "ansis", "bold", "create", "runMain", "getPackageVersion", "dirname", "__dirname", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "argv", "includes"]
6
- }
1
+ {"version":3,"names":["import_ansis","__toESM","require","import_citty","import_path","import_process","import_getTemplateInfo","import_create","import_url","import_fs","import_meta","exit","process","on","main","defineCommand","meta","name","version","description","args","directory","type","default","template","required","info","run","param","getTemplateInfo","extraSteps","isFullClone","projectName","basename","cwd","projectPath","console","bold","create","runMain","getPackageVersion","dirname","__dirname","fileURLToPath","url"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;gBAGA;AAHA,IAAAA,YAAA,GAAAC,OAAA,CAAAC,OAAA;EAAAC,YAAA,GAAAD,OAAA;EAAAE,WAAA,GAAAH,OAAA,CAAAC,OAAA;EAAAG,cAAA,GAAAH,OAAA;EAAAI,sBAAA,GAAAJ,OAAA;EAAAK,aAAA,GAAAL,OAAA;EAAAM,UAAA,GAAAN,OAAA;EAAAO,SAAA,GAAAP,OAAA;AAcA,MAAAQ,WAAgB;AACd,SAAAC,IAAQA,CAAA,EAAM;EAChBC,OAAA,CAAAD,IAAA;AAEA;AACAC,OAAA,CAAQC,EAAA,CAAG,WAAUF,IAAI;AAEzBC,OAAM,CAAAC,EAAA,SAAO,EAAAF,IAAA;AAAc,IACzBG,IAAM,OAAAX,YAAA,CAAAY,aAAA;EAAAC,IACJ;IACAC,IAAA,QAAS;IACTC,OAAA,SAAa;IACfC,WAAA;EACA;EAAMC,IACJ;IAAWC,SACH;MACNC,IAAA,cAAa;MACbH,WAAS;MACXI,OAAA;IACA;IAAUC,QACF;MACNF,IAAA,UAAU;MACVG,QAAA;MACFN,WAAA;IACA;IAAMO,IACJ;MACAJ,IAAA,WAAa;MACfH,WAAA;IACF;EACA;EACE,MAAIQ,IAAAC,KAAK,EAAM;IACb;MAAIR;IAAA,IAAAQ,KAAW;IACf,IAAIR,IAAA,CAAAM,IAAA;MACwB,IACxBF,QAAA,GAAa,UAAAlB,sBAAA,CAAAuB,eAAA,EAAAT,IAAA,CAAAI,QAAA;MAAA,YACb,IAAaA,QAAA,WAAAA,QAAK,CAAAM,UAAS;QAC3BC,WAAA;QACDC,WAAA,EAAA5B,WAAA,CAAAmB,OAAA,CAAAU,QAAA,KAAA5B,cAAA,CAAA6B,GAAA;QAEHC,WAAA,MAAA9B,cAAA,CAAA6B,GAAA;MACF;MAEA;IAIF;IACDE,OAAA,CAAAV,IAAA,IAAAU,OAAA,CAAAV,IAAA,CAAA1B,YAAA,CAAAuB,OAAA,CAAAc,IAAA,qCAAA9B,aAAA,CAAA+B,MAAA;MAEDd,QAAA,EAAAJ,IAAA,CAAAI;IAEA;EACE;AACA,EAAI;AAOJ,IAAArB,YAAM,CAAAoC,OAAc,EAAAzB,IAAA;AAEpB,SADoB0B,iBAAWA,CAAA;EAEjC,IAAAC,OAAA;EAEI,OAAQC,SAAK,MAAS,GAAAD,OAAW,GAAAC,SACnC,GAAQD,OAAK,GAAArC,WAAkB,CAACmB,OAChC,CAAAkB,OAAQ,CAAK,CAAC,GAAAjC,UAAA,CAAAmC,aAAA,EAAAjC,WAAA,CAAAkC,GAAA","ignoreList":[]}
@@ -1,77 +1,92 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var bare_exports = {};
25
35
  __export(bare_exports, {
26
36
  default: () => bare_default,
27
37
  replaceNameInUTF8File: () => replaceNameInUTF8File
28
38
  });
29
39
  module.exports = __toCommonJS(bare_exports);
30
- var import_ansis = __toESM(require("ansis")), import_fs_extra = __toESM(require("fs-extra")), import_node_path = require("node:path");
40
+ var import_ansis = __toESM(require("ansis")),
41
+ import_fs_extra = __toESM(require("fs-extra")),
42
+ import_path = require("path");
31
43
  function shouldIgnoreFile(filePath) {
32
44
  return filePath.match(/node_modules|yarn.lock|package-lock.json/g);
33
45
  }
34
46
  function shouldRenameFile(filePath, nameToReplace) {
35
- return (0, import_node_path.basename)(filePath).includes(nameToReplace);
47
+ return (0, import_path.basename)(filePath).includes(nameToReplace);
36
48
  }
37
49
  async function renameFile(filePath, oldName, newName) {
38
- var newFileName = (0, import_node_path.join)((0, import_node_path.dirname)(filePath), (0, import_node_path.basename)(filePath).replace(new RegExp(oldName, "g"), newName));
50
+ var newFileName = (0, import_path.join)((0, import_path.dirname)(filePath), (0, import_path.basename)(filePath).replace(new RegExp(oldName, "g"), newName));
39
51
  await import_fs_extra.default.rename(filePath, newFileName);
40
52
  }
41
53
  function walk(current) {
42
- if (!import_fs_extra.default.lstatSync(current).isDirectory())
43
- return [
44
- current
45
- ];
46
- var files = import_fs_extra.default.readdirSync(current).map(function(child) {
47
- return walk((0, import_node_path.join)(current, child));
48
- }), result = [];
49
- return result.concat.apply([
50
- current
51
- ], files);
54
+ if (!import_fs_extra.default.lstatSync(current).isDirectory()) return [current];
55
+ var files = import_fs_extra.default.readdirSync(current).map(function (child) {
56
+ return walk((0, import_path.join)(current, child));
57
+ }),
58
+ result = [];
59
+ return result.concat.apply([current], files);
52
60
  }
53
61
  async function replaceNameInUTF8File(filePath, projectName, templateName) {
54
- var fileContent = await import_fs_extra.default.readFile(filePath, "utf8"), replacedFileContent = fileContent.replace(new RegExp(templateName, "g"), projectName).replace(new RegExp(templateName.toLowerCase(), "g"), projectName.toLowerCase());
55
- fileContent !== replacedFileContent && await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8");
62
+ var fileContent = await import_fs_extra.default.readFile(filePath, "utf8"),
63
+ replacedFileContent = fileContent.replace(new RegExp(templateName, "g"), projectName).replace(new RegExp(templateName.toLowerCase(), "g"), projectName.toLowerCase());
64
+ fileContent !== replacedFileContent && (await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8"));
56
65
  }
57
- var main = async function(param) {
58
- var { isFullClone, projectName } = param, placeholderName = "bare", _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
59
- try {
60
- for (var _iterator = walk(process.cwd()).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
61
- var filePath = _step.value;
62
- shouldIgnoreFile(filePath) || ((await import_fs_extra.default.stat(filePath)).isDirectory() || await replaceNameInUTF8File(filePath, projectName, "bare"), shouldRenameFile(filePath, placeholderName) ? await renameFile(filePath, placeholderName, projectName) : shouldRenameFile(filePath, placeholderName.toLowerCase()) && await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase()));
63
- }
64
- } catch (err) {
65
- _didIteratorError = !0, _iteratorError = err;
66
- } finally {
66
+ var main = async function (param) {
67
+ var {
68
+ isFullClone,
69
+ projectName
70
+ } = param,
71
+ placeholderName = "bare",
72
+ _iteratorNormalCompletion = !0,
73
+ _didIteratorError = !1,
74
+ _iteratorError = void 0;
67
75
  try {
68
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
76
+ for (var _iterator = walk(process.cwd()).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
77
+ var filePath = _step.value;
78
+ shouldIgnoreFile(filePath) || ((await import_fs_extra.default.stat(filePath)).isDirectory() || (await replaceNameInUTF8File(filePath, projectName, "bare")), shouldRenameFile(filePath, placeholderName) ? await renameFile(filePath, placeholderName, projectName) : shouldRenameFile(filePath, placeholderName.toLowerCase()) && (await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase())));
79
+ }
80
+ } catch (err) {
81
+ _didIteratorError = !0, _iteratorError = err;
69
82
  } finally {
70
- if (_didIteratorError)
71
- throw _iteratorError;
83
+ try {
84
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
85
+ } finally {
86
+ if (_didIteratorError) throw _iteratorError;
87
+ }
72
88
  }
73
- }
74
- isFullClone && console.info(`
89
+ isFullClone && console.info(`
75
90
  ${import_ansis.default.green.bold("Done!")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:
76
91
  \u2022 ${import_ansis.default.green("cd")} ${projectName}
77
92
 
@@ -91,9 +106,6 @@ ${import_ansis.default.blue(`Run instructions for ${import_ansis.default.bold("i
91
106
  \u2022 Hit the Run button
92
107
 
93
108
  `);
94
- }, bare_default = main;
95
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- replaceNameInUTF8File
98
- });
99
- //# sourceMappingURL=bare.js.map
109
+ },
110
+ bare_default = main;
111
+ //# sourceMappingURL=bare.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/steps/bare.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;mBAAkB,2BAClB,kBAAe,8BACf,mBAAwC;AAGxC,SAASA,iBAAiBC,UAAgB;AACxC,SAAOA,SAASC,MAAM,2CAAA;AACxB;AAEA,SAASC,iBAAiBF,UAAkBG,eAAqB;AAC/D,aAAOC,2BAASJ,QAAAA,EAAUK,SAASF,aAAAA;AACrC;AAEA,eAAeG,WAAWN,UAAkBO,SAAiBC,SAAe;AAC1E,MAAMC,kBAAcC,2BAClBC,0BAAQX,QAAAA,OACRI,2BAASJ,QAAAA,EAAUY,QAAQ,IAAIC,OAAON,SAAS,GAAA,GAAMC,OAAAA,CAAAA;AAGvD,QAAMM,gBAAAA,QAAGC,OAAOf,UAAUS,WAAAA;AAC5B;AAEA,SAASO,KAAKC,SAAe;AAC3B,MAAI,CAACH,gBAAAA,QAAGI,UAAUD,OAAAA,EAASE,YAAW;AACpC,WAAO;MAACF;;AAGV,MAAMG,QAAQN,gBAAAA,QAAGO,YAAYJ,OAAAA,EAASK,IAAI,SAACC,OAAAA;WAAUP,SAAKN,uBAAKO,SAASM,KAAAA,CAAAA;MAClEC,SAAmB,CAAA;AACzB,SAAOA,OAAOC,OAAOC,MAAM;IAACT;KAAUG,KAAAA;AACxC;AAEA,eAAsBO,sBACpB3B,UACA4B,aACAC,cAAoB;AAEpB,MAAMC,cAAc,MAAMhB,gBAAAA,QAAGiB,SAAS/B,UAAU,MAAA,GAC1CgC,sBAAsBF,YACzBlB,QAAQ,IAAIC,OAAOgB,cAAc,GAAA,GAAMD,WAAAA,EACvChB,QAAQ,IAAIC,OAAOgB,aAAaI,YAAW,GAAI,GAAA,GAAML,YAAYK,YAAW,CAAA;AAE/E,EAAIH,gBAAgBE,u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AmBA,WAAAA;;;CAG7B;AAED,GAEA,eAAeO;",
5
- "names": ["shouldIgnoreFile", "filePath", "match", "shouldRenameFile", "nameToReplace", "basename", "includes", "renameFile", "oldName", "newName", "newFileName", "join", "dirname", "replace", "RegExp", "fs", "rename", "walk", "current", "lstatSync", "isDirectory", "files", "readdirSync", "map", "child", "result", "concat", "apply", "replaceNameInUTF8File", "projectName", "templateName", "fileContent", "readFile", "replacedFileContent", "toLowerCase", "writeFile", "main", "isFullClone", "placeholderName", "process", "cwd", "reverse", "stat", "console", "info", "ansis", "green", "bold", "greenBright", "blue", "gray"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","bare_exports","__export","default","bare_default","replaceNameInUTF8File","module","exports","import_ansis","__toESM","require","import_fs_extra","import_path","shouldIgnoreFile","filePath","match","shouldRenameFile","nameToReplace","basename","includes","renameFile","oldName","newName","newFileName","join","dirname","replace","RegExp","rename","walk","current","lstatSync","isDirectory","files","readdirSync","map","child","result","concat","apply","projectName","templateName","fileContent","readFile","replacedFileContent","toLowerCase","writeFile","main","param","isFullClone","placeholderName","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","process","cwd","reverse","Symbol","iterator","_step","next","done","stat","err","return","console","info","green","bold","greenBright"],"sources":["../../../src/steps/bare.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,YAAA;AAAAC,QAAA,CAAAD,YAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,YAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAX,YAAkB,CAAAK,YAAA;AAKlB,IAAAO,YAAS,GAAAC,OAAiB,CAAAC,OAAA,QAAkB;EAAAC,eAAA,GAAAF,OAAA,CAAAC,OAAA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A,CAAAL,OAAA,CAAAiE,KAAA,CAAAC,IAAA,2CAAA7D,YAAA,CAAAL,OAAA,CAAAmE,WAAA,CAAA9B,WAAA;AAAA,WAGxChC,YAAA,CAAAL,OAAA,CAAAiE,KAAA,UAAA5B,WAAA;AAED;AAEA,EAAAhC,YAAO,CAAAL,OAAQ,CAAAiE,KAAA,yBAAA5D,YAAA,CAAAL,OAAA,CAAAkE,IAAA","ignoreList":[]}
@@ -1,40 +1,58 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var fullstack_exports = {};
25
35
  __export(fullstack_exports, {
26
36
  default: () => fullstack_default
27
37
  });
28
38
  module.exports = __toCommonJS(fullstack_exports);
29
- var import_ansis = __toESM(require("ansis")), packageManager = "yarn", useYarn = packageManager === "yarn", runCommand = function(scriptName) {
30
- return `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
31
- }, main = async function(param) {
32
- var { isFullClone, projectName } = param;
33
- isFullClone && console.info(`
39
+ var import_ansis = __toESM(require("ansis")),
40
+ packageManager = "yarn",
41
+ useYarn = packageManager === "yarn",
42
+ runCommand = function (scriptName) {
43
+ return `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
44
+ },
45
+ main = async function (param) {
46
+ var {
47
+ isFullClone,
48
+ projectName
49
+ } = param;
50
+ isFullClone && console.info(`
34
51
  ${import_ansis.default.green.bold("Done!")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:
35
52
  \u2022 ${import_ansis.default.green("cd")} ${projectName}
36
53
  `), console.info(`
37
54
  To start the dev server, run: ${import_ansis.default.green(runCommand("dev"))}
38
55
  `);
39
- }, fullstack_default = main;
40
- //# sourceMappingURL=fullstack.js.map
56
+ },
57
+ fullstack_default = main;
58
+ //# sourceMappingURL=fullstack.native.js.map