create-loomstack-app 0.0.2 → 0.0.3
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/{chunk-EQQCF3Q6.js → chunk-PJ2RR44E.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1083,7 +1083,7 @@ Create a production-ready loomstack application.`);
|
|
|
1083
1083
|
const cwdIndex = argv.indexOf("--cwd");
|
|
1084
1084
|
const cwdValue = cwdIndex >= 0 ? argv[cwdIndex + 1] : void 0;
|
|
1085
1085
|
const positional = argv.filter(
|
|
1086
|
-
(value, index) => value !== "--json" && value !== "--cwd" && index !== cwdIndex + 1 && !value.startsWith("-")
|
|
1086
|
+
(value, index) => value !== "--json" && value !== "--cwd" && (cwdIndex < 0 || index !== cwdIndex + 1) && !value.startsWith("-")
|
|
1087
1087
|
);
|
|
1088
1088
|
const name = positional[0];
|
|
1089
1089
|
if (!name || cwdIndex >= 0 && !cwdValue) {
|
|
@@ -1094,7 +1094,7 @@ Repair: ${error.repair}`);
|
|
|
1094
1094
|
return 1;
|
|
1095
1095
|
}
|
|
1096
1096
|
try {
|
|
1097
|
-
const result = createApp(resolve4(cwdValue ?? process.cwd()), name);
|
|
1097
|
+
const result = createApp(resolve4(cwdValue ?? io.cwd?.() ?? process.cwd()), name);
|
|
1098
1098
|
if (json) io.stdout(JSON.stringify({ ok: true, data: result }));
|
|
1099
1099
|
else {
|
|
1100
1100
|
io.stdout(`Created loomstack app: ${result.appName}`);
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED