@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.js CHANGED
@@ -1127,6 +1127,10 @@ var Args = class _Args {
1127
1127
  this.parseArgs(args);
1128
1128
  this.env = this.get("env")?.toLowerCase() || "local";
1129
1129
  this.loadDotEnv();
1130
+ const envAfterDotEnv = this.get("env")?.toLowerCase();
1131
+ if (envAfterDotEnv) {
1132
+ this.env = envAfterDotEnv;
1133
+ }
1130
1134
  this.loadConfigFiles();
1131
1135
  this.checkConflicts();
1132
1136
  if (context && typeof context.registerCleanup === "function") {
@@ -2685,6 +2689,8 @@ async function init(flow, opts = {}) {
2685
2689
  }
2686
2690
  if (process.exitCode && process.exitCode !== 0) {
2687
2691
  process.exit(process.exitCode);
2692
+ } else if (stop) {
2693
+ process.exit(0);
2688
2694
  }
2689
2695
  }
2690
2696
  }