@nmakarov/cli-toolkit 0.53.0 → 0.57.0

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/init.cjs CHANGED
@@ -1152,6 +1152,10 @@ var Args = class _Args {
1152
1152
  this.parseArgs(args);
1153
1153
  this.env = this.get("env")?.toLowerCase() || "local";
1154
1154
  this.loadDotEnv();
1155
+ const envAfterDotEnv = this.get("env")?.toLowerCase();
1156
+ if (envAfterDotEnv) {
1157
+ this.env = envAfterDotEnv;
1158
+ }
1155
1159
  this.loadConfigFiles();
1156
1160
  this.checkConflicts();
1157
1161
  if (context && typeof context.registerCleanup === "function") {
@@ -2710,6 +2714,8 @@ async function init(flow, opts = {}) {
2710
2714
  }
2711
2715
  if (process.exitCode && process.exitCode !== 0) {
2712
2716
  process.exit(process.exitCode);
2717
+ } else if (stop) {
2718
+ process.exit(0);
2713
2719
  }
2714
2720
  }
2715
2721
  }