create-nexa-app 1.0.0 → 1.0.1

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 (2) hide show
  1. package/bin/nexa.js +29 -0
  2. package/package.json +1 -1
package/bin/nexa.js CHANGED
@@ -1172,6 +1172,11 @@ function parseArgs(argv) {
1172
1172
  process.exit(0);
1173
1173
  }
1174
1174
 
1175
+ if (first === "version" || first === "--version" || first === "-v") {
1176
+ console.log(`Nexa CLI v${pkg.version}`);
1177
+ process.exit(0);
1178
+ }
1179
+
1175
1180
  if (first === "new" && ["app", "gc", "cc", "svc", "ctx"].includes(second)) {
1176
1181
  return {
1177
1182
  shortcut: second,
@@ -1197,6 +1202,30 @@ function parseArgs(argv) {
1197
1202
  };
1198
1203
  }
1199
1204
 
1205
+ if (
1206
+ first &&
1207
+ !second &&
1208
+ ![
1209
+ "new",
1210
+ "app",
1211
+ "gc",
1212
+ "cc",
1213
+ "svc",
1214
+ "ctx",
1215
+ "help",
1216
+ "--help",
1217
+ "-h",
1218
+ "version",
1219
+ "--version",
1220
+ "-v",
1221
+ ].includes(first)
1222
+ ) {
1223
+ return {
1224
+ shortcut: "app",
1225
+ name: first,
1226
+ };
1227
+ }
1228
+
1200
1229
  printUsage();
1201
1230
  process.exit(1);
1202
1231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nexa-app",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Create a new Nexa app with prebuilt structure, PWA support, and modern React/Vite setup",
5
5
  "bin": {
6
6
  "create-nexa-app": "bin/nexa.js",