one 1.1.301 → 1.1.302

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,8 +39,8 @@ async function getLatestVersion(packageName) {
39
39
  }
40
40
  }
41
41
  async function cliMain(args = {}) {
42
- getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)(args), process.exit(0));
42
+ getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)({}), process.exit(0));
43
43
  const { create } = await import("create-vxrn/create");
44
- await create({});
44
+ await create(args);
45
45
  }
46
46
  //# sourceMappingURL=main.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cli/main.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA2B,oBAC3B,qBAA8B,wBAC9B,aAAoB;AAFpB;AAIA,eAAe,iBAAiB,aAAqB;AAInD,QAAM,qBAHU,kCAAc,YAAY,GAAG,EAER,kBAAkB,EACpB;AAEnC,MAAI;AAGF,UAAM,UADO,OADI,MAAM,MAAM,8BAA8B,WAAW,EAAE,GAC5C,KAAK,GACb,WAAW,EAAE;AAEjC,IAAI,UAAU,mBAAmB,WAE/B,QAAQ,KAAK;AAAA,2BAAyB,cAAc,WAAM,MAAM,EAAE,GAClE,QAAQ,KAAK;AAAA,CAA2E;AAAA,EAE5F,SAAS,OAAO;AACd,YAAQ,MAAM,uCAAuC,KAAK;AAAA,EAC5D;AACF;AAEA,eAAsB,QAAQ,OAAO,CAAC,GAAG;AAEvC,EAAK,iBAAiB,KAAK,OAEvB,2BAAW,gBAAgB,MAE7B,UAAM,gBAAI,IAAI,GACd,QAAQ,KAAK,CAAC;AAGhB,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,oBAAoB;AACpD,QAAM,OAAO,CAAC,CAAC;AACjB;",
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA2B,oBAC3B,qBAA8B,wBAC9B,aAAoB;AAFpB;AAIA,eAAe,iBAAiB,aAAqB;AAInD,QAAM,qBAHU,kCAAc,YAAY,GAAG,EAER,kBAAkB,EACpB;AAEnC,MAAI;AAGF,UAAM,UADO,OADI,MAAM,MAAM,8BAA8B,WAAW,EAAE,GAC5C,KAAK,GACb,WAAW,EAAE;AAEjC,IAAI,UAAU,mBAAmB,WAE/B,QAAQ,KAAK;AAAA,2BAAyB,cAAc,WAAM,MAAM,EAAE,GAClE,QAAQ,KAAK;AAAA,CAA2E;AAAA,EAE5F,SAAS,OAAO;AACd,YAAQ,MAAM,uCAAuC,KAAK;AAAA,EAC5D;AACF;AAEA,eAAsB,QAAQ,OAA0B,CAAC,GAAG;AAE1D,EAAK,iBAAiB,KAAK,OAEvB,2BAAW,gBAAgB,MAE7B,UAAM,gBAAI,CAAC,CAAC,GACZ,QAAQ,KAAK,CAAC;AAGhB,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,oBAAoB;AACpD,QAAM,OAAO,IAAI;AACnB;",
5
5
  "names": []
6
6
  }
@@ -41,9 +41,9 @@ async function getLatestVersion(packageName) {
41
41
  }
42
42
  async function cliMain() {
43
43
  var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
44
- getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)(args), process.exit(0));
44
+ getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)({}), process.exit(0));
45
45
  var { create } = await import("create-vxrn/create");
46
- await create({});
46
+ await create(args);
47
47
  }
48
48
  // Annotate the CommonJS export names for ESM import in node:
49
49
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/main.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;qBAA2B,oBAC3B,qBAA8B,wBAC9B,a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AAoBM,MAAAA,EAAQ,GAClEC,QAAQC,KAAK;CAAA;EAEjB,SAASC,OAAO;AACdF,YAAQE,MAAM,uCAAuCA,KAAAA;EACvD;AACF;AAEA,eAAsBC,UAAAA;MAAQC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA0B,CAAC;AAEvD,EAAKlB,iBAAiB,KAAA,OAElBmB,2BAAW,gBAAA,MAEb,UAAMC,gBAAI,CAAC,CAAA,GACXC,QAAQC,KAAK,CAAA;AAGf,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,oBAAA;AAChC,QAAMA,OAAOL,IAAAA;AACf;",
5
5
  "names": ["getLatestVersion", "packageName", "require", "createRequire", "url", "_confuseDepCheck", "packageJson", "currentVersion", "version", "response", "fetch", "data", "json", "latest", "console", "info", "error", "cliMain", "args", "existsSync", "run", "process", "exit", "create"]
6
6
  }
package/dist/cjs/cli.js CHANGED
@@ -129,7 +129,7 @@ const dev = (0, import_citty.defineCommand)({
129
129
  }
130
130
  }), runAndroid = (0, import_citty.defineCommand)({
131
131
  meta: {
132
- name: "run:ios",
132
+ name: "run:android",
133
133
  version
134
134
  },
135
135
  args: {},
@@ -150,27 +150,41 @@ const dev = (0, import_citty.defineCommand)({
150
150
  root: process.cwd()
151
151
  });
152
152
  }
153
+ }), subCommands = {
154
+ dev,
155
+ clean,
156
+ build: buildCommand,
157
+ prebuild,
158
+ "run:ios": runIos,
159
+ "run:android": runAndroid,
160
+ serve: serveCommand
161
+ }, subMain = (0, import_citty.defineCommand)({
162
+ meta: {
163
+ name: "main",
164
+ version,
165
+ description: "Welcome to One"
166
+ },
167
+ subCommands
153
168
  }), main = (0, import_citty.defineCommand)({
154
169
  meta: {
155
170
  name: "main",
156
171
  version,
157
172
  description: "Welcome to One"
158
173
  },
159
- args: {},
174
+ args: {
175
+ name: {
176
+ type: "positional",
177
+ description: "Folder name to place the app into",
178
+ required: !1
179
+ }
180
+ },
160
181
  async run({ args }) {
161
- if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0]))
182
+ if (subCommands[args.name]) {
183
+ (0, import_citty.runMain)(subMain);
162
184
  return;
185
+ }
163
186
  const { cliMain } = await import("./cli/main");
164
187
  await cliMain(args);
165
- },
166
- subCommands: {
167
- dev,
168
- clean,
169
- build: buildCommand,
170
- prebuild,
171
- "run:ios": runIos,
172
- "run:android": runAndroid,
173
- serve: serveCommand
174
188
  }
175
189
  });
176
190
  (0, import_citty.runMain)(main);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cli.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAAS,oBAAoB;AAC3B,MAAI;AACJ,EAAI,OAAO,YAAc,MAEvB,UAAU,YAGV,UAAU,iBAAAA,QAAK,YAAQ,+BAAc,YAAY,GAAG,CAAC;AAEvD,QAAM,cAAc,iBAAAA,QAAK,KAAK,SAAS,MAAM,MAAM,cAAc;AAEjE,SADoB,KAAK,UAAM,6BAAa,aAAa,OAAO,CAAC,EAC9C;AACrB;AAEA,MAAM,UAAU,kBAAkB;AAAA,IAE7B,wBAAQ,QAAQ,IAAI,CAAC;AAE1B,MAAM,UAAM,4BAAc;AAAA,EACxB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,UAAM,EAAE,IAAI,IAAI,MAAM,OAAO,WAAW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,IAAI,EAAE,KAAK,GAAG;AAClB,QAAI,YAAY,KAAK,IAAI,GAAG;AAE1B,gCAAQ,OAAO;AACf;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AACF,CAAC;AAAA,IAED,sBAAQ,IAAI;",
5
5
  "names": ["path"]
6
6
  }
@@ -130,7 +130,7 @@ var dev = (0, import_citty.defineCommand)({
130
130
  }
131
131
  }), runAndroid = (0, import_citty.defineCommand)({
132
132
  meta: {
133
- name: "run:ios",
133
+ name: "run:android",
134
134
  version
135
135
  },
136
136
  args: {},
@@ -151,33 +151,42 @@ var dev = (0, import_citty.defineCommand)({
151
151
  root: process.cwd()
152
152
  });
153
153
  }
154
+ }), subCommands = {
155
+ dev,
156
+ clean,
157
+ build: buildCommand,
158
+ prebuild,
159
+ "run:ios": runIos,
160
+ "run:android": runAndroid,
161
+ serve: serveCommand
162
+ }, subMain = (0, import_citty.defineCommand)({
163
+ meta: {
164
+ name: "main",
165
+ version,
166
+ description: "Welcome to One"
167
+ },
168
+ subCommands
154
169
  }), main = (0, import_citty.defineCommand)({
155
170
  meta: {
156
171
  name: "main",
157
172
  version,
158
173
  description: "Welcome to One"
159
174
  },
160
- args: {},
175
+ args: {
176
+ name: {
177
+ type: "positional",
178
+ description: "Folder name to place the app into",
179
+ required: !1
180
+ }
181
+ },
161
182
  async run(param) {
162
183
  var { args } = param;
163
- if (![
164
- "clean",
165
- "prebuild",
166
- "run:ios",
167
- "run:android"
168
- ].includes(args._[0])) {
169
- var { cliMain } = await import("./cli/main");
170
- await cliMain(args);
184
+ if (subCommands[args.name]) {
185
+ (0, import_citty.runMain)(subMain);
186
+ return;
171
187
  }
172
- },
173
- subCommands: {
174
- dev,
175
- clean,
176
- build: buildCommand,
177
- prebuild,
178
- "run:ios": runIos,
179
- "run:android": runAndroid,
180
- serve: serveCommand
188
+ var { cliMain } = await import("./cli/main");
189
+ await cliMain(args);
181
190
  }
182
191
  });
183
192
  (0, import_citty.runMain)(main);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/cli.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAASA,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUE,iBAAAA,QAAKF,YAAQG,+BAAc,YAAYC,GAAG,CAAA;AAEtD,MAAMC,cAAcH,iBAAAA,QAAKI,KAAKN,SAAS,MAAM,MAAM,cAAA,GAC7CO,cAAcC,KAAKC,UAAMC,6BAAaL,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYI;AACrB;AAEA,IAAMA,UAAUZ,kBAAAA;IAEXa,wBAAQC,QAAQC,IAAG,CAAA;AAExB,IAAMC,UAAMC,4BAAc;EACxBC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM;IACJC,OAAO;MACLC,MAAM;IACR;IACAC,MAAM;MACJD,MAAM;IACR;IACAE,MAAM;MACJF,MAAM;IACR;IACAG,OAAO;MACLH,MAAM;IACR;EACF;EACA,MAAMI,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEM,IAAG,IAAK,MAAM,OAAO,WAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMO,mBAAeX,4BAAc;EACjCC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM;IACJQ,MAAM;MACJN,MAAM;MACNO,UAAU;IACZ;;IAEAC,MAAM;MACJR,MAAM;MACNO,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEW,MAAK,IAAK,MAAM,OAAO,cAAA;AAC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OAAO,kBAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMC,YAAQL,4BAAc;EAC1BC,MAAM;IACJC,MAAM;IACNP,SAAS;IACTQ,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,MAAAA;AACJ,QAAM,EAAEL,OAAOqB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAM9B,QAAQC,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEM8B,WAAO5B,4BAAc;EACzBC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAI;MAAC;MAAS;MAAY;MAAW;MAAeyB,SAASzB,KAAK0B,EAAE,CAAA,CAAE,GAKtE;UAAM,EAAEC,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,YAAMA,QAAQ3B,IAAAA;;EAChB;EACA4B,aAAa;IACXjC;IACAM;IACAU,OAAOJ;IACPY;IACA,WAAWC;IACX,eAAeC;IACfJ,OAAOJ;EACT;AACF,CAAA;IAEAgB,sBAAQL,IAAAA;",
5
- "names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "loadEnv", "process", "cwd", "dev", "defineCommand", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "main", "includes", "_", "cliMain", "subCommands", "runMain"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAASA,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,U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ClB7B;EACAM;EACAU,OAAOJ;EACPY;EACA,WAAWC;EACX,eAAeC;EACfJ,OAAOJ;AACT,GAGMY,cAAU7B,4BAAc;EAC5BC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAyB;AACF,CAAA,GAEME,WAAO9B,4BAAc;EACzBC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM;IACJF,MAAM;MACJI,MAAM;MACNH,aAAa;MACbU,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAIwB,YAAYxB,KAAKF,IAAI,GAAG;AAE1B6B,gCAAQF,OAAAA;AACR;IACF;AAEA,QAAM,EAAEG,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ5B,IAAAA;EAChB;AACF,CAAA;IAEA2B,sBAAQD,IAAAA;",
5
+ "names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "loadEnv", "process", "cwd", "dev", "defineCommand", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "subCommands", "subMain", "main", "runMain", "cliMain"]
6
6
  }
@@ -13,9 +13,9 @@ async function getLatestVersion(packageName) {
13
13
  }
14
14
  }
15
15
  async function cliMain(args = {}) {
16
- getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
16
+ getLatestVersion("one"), existsSync("vite.config.ts") && (await run({}), process.exit(0));
17
17
  const { create } = await import("create-vxrn/create");
18
- await create({});
18
+ await create(args);
19
19
  }
20
20
  export {
21
21
  cliMain
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cli/main.ts"],
4
- "mappings": "AAAA,SAAS,kBAAkB;AA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K,CAAC;AAGhB,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,oBAAoB;AACpD,QAAM,OAAO,IAAI;AACnB;",
5
5
  "names": []
6
6
  }
@@ -13,11 +13,11 @@ async function getLatestVersion(packageName) {
13
13
  }
14
14
  }
15
15
  async function cliMain(args = {}) {
16
- getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
16
+ getLatestVersion("one"), existsSync("vite.config.ts") && (await run({}), process.exit(0));
17
17
  const {
18
18
  create
19
19
  } = await import("create-vxrn/create");
20
- await create({});
20
+ await create(args);
21
21
  }
22
22
  export { cliMain };
23
23
  //# sourceMappingURL=main.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["existsSync","createRequire","run","getLatestVersion","packageName","currentVersion","import","meta","url","version","latest","fetch","json","console","info","error","cliMain","args","process","exit","create"],"sources":["../../../src/cli/main.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,aAAA,QAAqB;AAC9B,SAASC,GAAA,QAAW;AAEpB,eAAeC,iBAAiBC,WAAA,EAAqB;EAInD,MAAMC,cAAA,GAHUJ,aAAA,CAAcK,MAAA,CAAAC,IAAA,CAAYC,GAAG,EAER,kBAAkB,EACpBC,OAAA;EAEnC,IAAI;IAGF,MAAMC,MAAA,IADO,OADI,MAAMC,KAAA,CAAM,8BAA8BP,WAAW,EAAE,GAC5CQ,IAAA,CAAK,GACb,WAAW,EAAEF,MAAA;IAE7BA,MAAA,IAAUL,cAAA,KAAmBK,MAAA,KAE/BG,OAAA,CAAQC,IAAA,CAAK;AAAA,2BAAyBT,cAAc,WAAMK,MAAM,EAAE,GAClEG,OAAA,CAAQC,IAAA,CAAK;AAAA,CAA2E;EAE5F,SAASC,KAAA,EAAO;IACdF,OAAA,CAAQE,KAAA,CAAM,uCAAuCA,KAAK;EAC5D;AACF;AAEA,eAAsBC,QAAQC,IAAA,GAAO,CAAC,GAAG;EAElCd,gBAAA,CAAiB,KAAK,GAEvBH,UAAA,CAAW,gBAAgB,MAE7B,MAAME,GAAA,CAAIe,IAAI,GACdC,OAAA,CAAQC,IAAA,CAAK,CAAC;EAGhB,MAAM;IAAEC;EAAO,IAAI,MAAM,OAAO,oBAAoB;EACpD,MAAMA,MAAA,CAAO,CAAC,CAAC;AACjB","ignoreList":[]}
1
+ {"version":3,"names":["existsSync","createRequire","run","getLatestVersion","packageName","currentVersion","import","meta","url","version","latest","fetch","json","console","info","error","cliMain","args","process","exit","create"],"sources":["../../../src/cli/main.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,aAAA,QAAqB;AAC9B,SAASC,GAAA,QAAW;AAEpB,eAAeC,iBAAiBC,WAAA,EAAqB;EAInD,MAAMC,cAAA,GAHUJ,aAAA,CAAcK,MAAA,CAAAC,IAAA,CAAYC,GAAG,EAER,kBAAkB,EACpBC,OAAA;EAEnC,IAAI;IAGF,MAAMC,MAAA,IADO,OADI,MAAMC,KAAA,CAAM,8BAA8BP,WAAW,EAAE,GAC5CQ,IAAA,CAAK,GACb,WAAW,EAAEF,MAAA;IAE7BA,MAAA,IAAUL,cAAA,KAAmBK,MAAA,KAE/BG,OAAA,CAAQC,IAAA,CAAK;AAAA,2BAAyBT,cAAc,WAAMK,MAAM,EAAE,GAClEG,OAAA,CAAQC,IAAA,CAAK;AAAA,CAA2E;EAE5F,SAASC,KAAA,EAAO;IACdF,OAAA,CAAQE,KAAA,CAAM,uCAAuCA,KAAK;EAC5D;AACF;AAEA,eAAsBC,QAAQC,IAAA,GAA0B,CAAC,GAAG;EAErDd,gBAAA,CAAiB,KAAK,GAEvBH,UAAA,CAAW,gBAAgB,MAE7B,MAAME,GAAA,CAAI,CAAC,CAAC,GACZgB,OAAA,CAAQC,IAAA,CAAK,CAAC;EAGhB,MAAM;IAAEC;EAAO,IAAI,MAAM,OAAO,oBAAoB;EACpD,MAAMA,MAAA,CAAOH,IAAI;AACnB","ignoreList":[]}
@@ -14,9 +14,9 @@ async function getLatestVersion(packageName) {
14
14
  }
15
15
  async function cliMain() {
16
16
  var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17
- getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
17
+ getLatestVersion("one"), existsSync("vite.config.ts") && (await run({}), process.exit(0));
18
18
  var { create } = await import("create-vxrn/create");
19
- await create({});
19
+ await create(args);
20
20
  }
21
21
  export {
22
22
  cliMain
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/main.ts"],
4
- "mappings": "AAAA,SAASA,kBAAkB;AAC3B,SAASC,qBAAqB;AAC9B,SAASC,WAAW;AAEpB,eAAeC,iBAAiBC,aAAmB;AACjD,MAAMC,WAAUJ,cAAc,YAAYK,GAAG,GACvCC,mBAAmBF,UACnBG,cAAcD,iBAAiB,kBAAA,GAC/BE,iBAAiBD,YAAYE;AAEnC,MAAI;AACF,QAAMC,WAAW,MAAMC,MAAM,8BAA8BR,WAAAA,EAAa,GAClES,OAAO,MAAMF,SAASG,KAAI,GAC1BC,SAASF,KAAK,WAAA,EAAaE;AAEjC,IAAIA,UAAUN,mBAAmBM,WAE/BC,QAAQC,KAAK;2BAAyBR,cAAAA,WAAoBM,MAAAA,EAAQ,GAClEC,QAAQC,KAAK;CAAA;EAEjB,SAASC,OAAO;AACdF,YAAQE,MAAM,uCAAuCA,KAAAA;EACvD;AACF;AAEA,eAAsBC,UAAAA;MAAQC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAO,CAAC;AAEpC,EAAKjB,iBAAiB,KAAA,GAElBH,WAAW,gBAAA,MAEb,MAAME,IAAIkB,IAAAA,GACVC,QAAQC,KAAK,CAAA;AAGf,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,oBAAA;AAChC,QAAMA,OAAO,CAAC,CAAA;AAChB;",
4
+ "mappings": "AAAA,SAASA,kBAAkB;AAC3B,SAASC,qBAAqB;AAC9B,SAASC,WAAW;AAEpB,eAAeC,iBAAiBC,aAAmB;AACjD,MAAMC,WAAUJ,cAAc,YAAYK,GAAG,GACvCC,mBAAmBF,UACnBG,cAAcD,iBAAiB,kBAAA,GAC/BE,iBAAiBD,YAAYE;AAEnC,MAAI;AACF,QAAMC,WAAW,MAAMC,MAAM,8BAA8BR,WAAAA,EAAa,GAClES,OAAO,MAAMF,SAASG,KAAI,GAC1BC,SAASF,KAAK,WAAA,EAAaE;AAEjC,IAAIA,UAAUN,mBAAmBM,WAE/BC,QAAQC,KAAK;2BAAyBR,cAAAA,WAAoBM,MAAAA,EAAQ,GAClEC,QAAQC,KAAK;CAAA;EAEjB,SAASC,OAAO;AACdF,YAAQE,MAAM,uCAAuCA,KAAAA;EACvD;AACF;AAEA,eAAsBC,UAAAA;MAAQC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA0B,CAAC;AAEvD,EAAKjB,iBAAiB,KAAA,GAElBH,WAAW,gBAAA,MAEb,MAAME,IAAI,CAAC,CAAA,GACXmB,QAAQC,KAAK,CAAA;AAGf,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,oBAAA;AAChC,QAAMA,OAAOH,IAAAA;AACf;",
5
5
  "names": ["existsSync", "createRequire", "run", "getLatestVersion", "packageName", "require", "url", "_confuseDepCheck", "packageJson", "currentVersion", "version", "response", "fetch", "data", "json", "latest", "console", "info", "error", "cliMain", "args", "process", "exit", "create"]
6
6
  }
package/dist/esm/cli.js CHANGED
@@ -113,7 +113,7 @@ const dev = defineCommand({
113
113
  }
114
114
  }), runAndroid = defineCommand({
115
115
  meta: {
116
- name: "run:ios",
116
+ name: "run:android",
117
117
  version
118
118
  },
119
119
  args: {},
@@ -134,27 +134,41 @@ const dev = defineCommand({
134
134
  root: process.cwd()
135
135
  });
136
136
  }
137
+ }), subCommands = {
138
+ dev,
139
+ clean,
140
+ build: buildCommand,
141
+ prebuild,
142
+ "run:ios": runIos,
143
+ "run:android": runAndroid,
144
+ serve: serveCommand
145
+ }, subMain = defineCommand({
146
+ meta: {
147
+ name: "main",
148
+ version,
149
+ description: "Welcome to One"
150
+ },
151
+ subCommands
137
152
  }), main = defineCommand({
138
153
  meta: {
139
154
  name: "main",
140
155
  version,
141
156
  description: "Welcome to One"
142
157
  },
143
- args: {},
158
+ args: {
159
+ name: {
160
+ type: "positional",
161
+ description: "Folder name to place the app into",
162
+ required: !1
163
+ }
164
+ },
144
165
  async run({ args }) {
145
- if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0]))
166
+ if (subCommands[args.name]) {
167
+ runMain(subMain);
146
168
  return;
169
+ }
147
170
  const { cliMain } = await import("./cli/main");
148
171
  await cliMain(args);
149
- },
150
- subCommands: {
151
- dev,
152
- clean,
153
- build: buildCommand,
154
- prebuild,
155
- "run:ios": runIos,
156
- "run:android": runAndroid,
157
- serve: serveCommand
158
172
  }
159
173
  });
160
174
  runMain(main);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cli.ts"],
4
- "mappings": "AAAA,SAAS,eAAe,eAAe;AACvC,SAAS,eAAe;AACxB,SAAS,oBAAoB;AAC7B,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAE9B,SAAS,oBAAoB;AAC3B,MAAI;AACJ,EAAI,OAAO,YAAc,MAEvB,UAAU,YAGV,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;AAEvD,QAAM,cAAc,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc;AAEjE,SADoB,KAAK,MAAM,aAAa,aAAa,OAAO,CAAC,EAC9C;AACrB;AAEA,MAAM,UAAU,kBAAkB;AAE7B,QAAQ,QAAQ,IAAI,CAAC;AAE1B,MAAM,MAAM,cAAc;AAAA,EACxB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AA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AACF,CAAC,GAEK,OAAO,cAAc;AAAA,EACzB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,QAAI,YAAY,KAAK,IAAI,GAAG;AAE1B,cAAQ,OAAO;AACf;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AACF,CAAC;AAED,QAAQ,IAAI;",
5
5
  "names": []
6
6
  }
package/dist/esm/cli.mjs CHANGED
@@ -138,7 +138,7 @@ const dev = defineCommand({
138
138
  }),
139
139
  runAndroid = defineCommand({
140
140
  meta: {
141
- name: "run:ios",
141
+ name: "run:android",
142
142
  version
143
143
  },
144
144
  args: {},
@@ -167,30 +167,47 @@ const dev = defineCommand({
167
167
  });
168
168
  }
169
169
  }),
170
+ subCommands = {
171
+ dev,
172
+ clean,
173
+ build: buildCommand,
174
+ prebuild,
175
+ "run:ios": runIos,
176
+ "run:android": runAndroid,
177
+ serve: serveCommand
178
+ },
179
+ subMain = defineCommand({
180
+ meta: {
181
+ name: "main",
182
+ version,
183
+ description: "Welcome to One"
184
+ },
185
+ subCommands
186
+ }),
170
187
  main = defineCommand({
171
188
  meta: {
172
189
  name: "main",
173
190
  version,
174
191
  description: "Welcome to One"
175
192
  },
176
- args: {},
193
+ args: {
194
+ name: {
195
+ type: "positional",
196
+ description: "Folder name to place the app into",
197
+ required: !1
198
+ }
199
+ },
177
200
  async run({
178
201
  args
179
202
  }) {
180
- if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0])) return;
203
+ if (subCommands[args.name]) {
204
+ runMain(subMain);
205
+ return;
206
+ }
181
207
  const {
182
208
  cliMain
183
209
  } = await import("./cli/main.mjs");
184
210
  await cliMain(args);
185
- },
186
- subCommands: {
187
- dev,
188
- clean,
189
- build: buildCommand,
190
- prebuild,
191
- "run:ios": runIos,
192
- "run:android": runAndroid,
193
- serve: serveCommand
194
211
  }
195
212
  });
196
213
  runMain(main);
@@ -1 +1 @@
1
- {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE7BJ,OAAA,CAAQe,OAAA,CAAQC,GAAA,CAAI,CAAC;AAE1B,MAAMC,GAAA,GAAMnB,aAAA,CAAc;IACxBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAA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;MAChD,MAAMA,SAAA,CAAU;QACdC,IAAA,EAAM3B,OAAA,CAAQC,GAAA,CAAI;MACpB,CAAC;IACH;EACF,CAAC;EAEK2B,IAAA,GAAO7C,aAAA,CAAc;IACzBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMM,IAAI;MAAEN;IAAK,GAAG;MAClB,IAAI,CAAC,SAAS,YAAY,WAAW,aAAa,EAAEwB,QAAA,CAASxB,IAAA,CAAKyB,CAAA,CAAE,CAAC,CAAC,GAEpE;MAGF,MAAM;QAAEC;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ1B,IAAI;IACpB;IACA2B,WAAA,EAAa;MACX9B,GAAA;MACAI,KAAA;MACAU,KAAA,EAAOJ,YAAA;MACPW,QAAA;MACA,WAAWC,MAAA;MACX,eAAeC,UAAA;MACfH,KAAA,EAAOJ;IACT;EACF,CAAC;AAEDlC,OAAA,CAAQ4C,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","subCommands","subMain","main","cliMain"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aA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I,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ1B,IAAI;IACpB;EACF,CAAC;AAEDrB,OAAA,CAAQ8C,IAAI","ignoreList":[]}
@@ -113,7 +113,7 @@ var dev = defineCommand({
113
113
  }
114
114
  }), runAndroid = defineCommand({
115
115
  meta: {
116
- name: "run:ios",
116
+ name: "run:android",
117
117
  version
118
118
  },
119
119
  args: {},
@@ -134,33 +134,42 @@ var dev = defineCommand({
134
134
  root: process.cwd()
135
135
  });
136
136
  }
137
+ }), subCommands = {
138
+ dev,
139
+ clean,
140
+ build: buildCommand,
141
+ prebuild,
142
+ "run:ios": runIos,
143
+ "run:android": runAndroid,
144
+ serve: serveCommand
145
+ }, subMain = defineCommand({
146
+ meta: {
147
+ name: "main",
148
+ version,
149
+ description: "Welcome to One"
150
+ },
151
+ subCommands
137
152
  }), main = defineCommand({
138
153
  meta: {
139
154
  name: "main",
140
155
  version,
141
156
  description: "Welcome to One"
142
157
  },
143
- args: {},
158
+ args: {
159
+ name: {
160
+ type: "positional",
161
+ description: "Folder name to place the app into",
162
+ required: !1
163
+ }
164
+ },
144
165
  async run(param) {
145
166
  var { args } = param;
146
- if (![
147
- "clean",
148
- "prebuild",
149
- "run:ios",
150
- "run:android"
151
- ].includes(args._[0])) {
152
- var { cliMain } = await import("./cli/main");
153
- await cliMain(args);
167
+ if (subCommands[args.name]) {
168
+ runMain(subMain);
169
+ return;
154
170
  }
155
- },
156
- subCommands: {
157
- dev,
158
- clean,
159
- build: buildCommand,
160
- prebuild,
161
- "run:ios": runIos,
162
- "run:android": runAndroid,
163
- serve: serveCommand
171
+ var { cliMain } = await import("./cli/main");
172
+ await cliMain(args);
164
173
  }
165
174
  });
166
175
  runMain(main);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/cli.ts"],
4
- "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,SAASC,eAAe;AACxB,SAASC,oBAAoB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C,UAAMA,UAAU;MACdC,MAAM7B,QAAQC,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEM6B,OAAO9C,cAAc;EACzBmB,MAAM;IACJC,MAAM;IACNL;IACAM,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAI;MAAC;MAAS;MAAY;MAAW;MAAeyB,SAASzB,KAAK0B,EAAE,CAAA,CAAE,GAKtE;UAAM,EAAEC,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,YAAMA,QAAQ3B,IAAAA;;EAChB;EACA4B,aAAa;IACXhC;IACAK;IACAU,OAAOJ;IACPY;IACA,WAAWC;IACX,eAAeC;IACfJ,OAAOJ;EACT;AACF,CAAA;AAEAlC,QAAQ6C,IAAAA;",
5
- "names": ["defineCommand", "runMain", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "main", "includes", "_", "cliMain", "subCommands"]
4
+ "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,KAAKG,QAAQF,cAAc,YAAYI,GAAG,CAAA;AAEtD,MAAMC,cAAcN,KAAKO,KAAKJ,SAAS,MAAM,MAAM,cAAA,GAC7CK,cAAcC,KAAKC,MAAMX,aAAaO,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYG;AACrB;AAEA,IAAMA,UAAUT,kBAAAA;AAEXJ,Q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I,MAAM;MACNH,aAAa;MACbU,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAIwB,YAAYxB,KAAKF,IAAI,GAAG;AAE1BnB,cAAQ8C,OAAAA;AACR;IACF;AAEA,QAAM,EAAEE,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ3B,IAAAA;EAChB;AACF,CAAA;AAEArB,QAAQ+C,IAAAA;",
5
+ "names": ["defineCommand", "runMain", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "subCommands", "subMain", "main", "cliMain"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.301",
3
+ "version": "1.1.302",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -89,13 +89,13 @@
89
89
  "@react-navigation/native-stack": "~6.9.13",
90
90
  "@react-navigation/routers": "~6.1.9",
91
91
  "@ungap/structured-clone": "^1.2.0",
92
- "@vxrn/tslib-lite": "1.1.301",
93
- "@vxrn/universal-color-scheme": "1.1.301",
94
- "@vxrn/use-isomorphic-layout-effect": "1.1.301",
92
+ "@vxrn/tslib-lite": "1.1.302",
93
+ "@vxrn/universal-color-scheme": "1.1.302",
94
+ "@vxrn/use-isomorphic-layout-effect": "1.1.302",
95
95
  "babel-dead-code-elimination": "^1.0.6",
96
96
  "citty": "^0.1.6",
97
97
  "core-js": "^3.38.1",
98
- "create-vxrn": "1.1.301",
98
+ "create-vxrn": "1.1.302",
99
99
  "dotenv": "^16.4.5",
100
100
  "escape-string-regexp": "^5.0.0",
101
101
  "expo-linking": "~6.3.1",
@@ -117,7 +117,7 @@
117
117
  "url-parse": "^1.5.10",
118
118
  "vite": "6.0.0-beta.1",
119
119
  "vite-tsconfig-paths": "^5.0.1",
120
- "vxrn": "1.1.301",
120
+ "vxrn": "1.1.302",
121
121
  "ws": "^8.18.0",
122
122
  "xxhashjs": "^0.2.2"
123
123
  },
package/src/cli/main.ts CHANGED
@@ -23,16 +23,16 @@ async function getLatestVersion(packageName: string) {
23
23
  }
24
24
  }
25
25
 
26
- export async function cliMain(args = {}) {
26
+ export async function cliMain(args: { name?: string } = {}) {
27
27
  // async as the flow takes a minute anyway
28
28
  void getLatestVersion('one')
29
29
 
30
30
  if (existsSync('vite.config.ts')) {
31
31
  // Inside existing app, let's just run the damn thing
32
- await run(args)
32
+ await run({})
33
33
  process.exit(0)
34
34
  }
35
35
 
36
36
  const { create } = await import('create-vxrn/create')
37
- await create({})
37
+ await create(args)
38
38
  }
package/src/cli.ts CHANGED
@@ -135,7 +135,7 @@ const runIos = defineCommand({
135
135
 
136
136
  const runAndroid = defineCommand({
137
137
  meta: {
138
- name: 'run:ios',
138
+ name: 'run:android',
139
139
  version: version,
140
140
  },
141
141
  args: {},
@@ -160,31 +160,49 @@ const clean = defineCommand({
160
160
  },
161
161
  })
162
162
 
163
+ const subCommands = {
164
+ dev,
165
+ clean,
166
+ build: buildCommand,
167
+ prebuild,
168
+ 'run:ios': runIos,
169
+ 'run:android': runAndroid,
170
+ serve: serveCommand,
171
+ }
172
+
173
+ // workaround for having sub-commands but also positional arg for naming in the create flow
174
+ const subMain = defineCommand({
175
+ meta: {
176
+ name: 'main',
177
+ version: version,
178
+ description: 'Welcome to One',
179
+ },
180
+ subCommands,
181
+ })
182
+
163
183
  const main = defineCommand({
164
184
  meta: {
165
185
  name: 'main',
166
186
  version: version,
167
187
  description: 'Welcome to One',
168
188
  },
169
- args: {},
189
+ args: {
190
+ name: {
191
+ type: 'positional',
192
+ description: 'Folder name to place the app into',
193
+ required: false,
194
+ },
195
+ },
170
196
  async run({ args }) {
171
- if (['clean', 'prebuild', 'run:ios', 'run:android'].includes(args._[0])) {
172
- // IDK why we're getting into here after a subcommand has been run
197
+ if (subCommands[args.name]) {
198
+ // run sub command ourselves
199
+ runMain(subMain)
173
200
  return
174
201
  }
175
202
 
176
203
  const { cliMain } = await import('./cli/main')
177
204
  await cliMain(args)
178
205
  },
179
- subCommands: {
180
- dev,
181
- clean,
182
- build: buildCommand,
183
- prebuild,
184
- 'run:ios': runIos,
185
- 'run:android': runAndroid,
186
- serve: serveCommand,
187
- },
188
206
  })
189
207
 
190
208
  runMain(main)
@@ -1,2 +1,4 @@
1
- export declare function cliMain(args?: {}): Promise<void>;
1
+ export declare function cliMain(args?: {
2
+ name?: string;
3
+ }): Promise<void>;
2
4
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":"AAyBA,wBAAsB,OAAO,CAAC,IAAI,KAAK,iBAYtC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":"AAyBA,wBAAsB,OAAO,CAAC,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,iBAYzD"}