@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.
@@ -1132,6 +1132,10 @@ var Args = class _Args {
1132
1132
  this.parseArgs(args);
1133
1133
  this.env = this.get("env")?.toLowerCase() || "local";
1134
1134
  this.loadDotEnv();
1135
+ const envAfterDotEnv = this.get("env")?.toLowerCase();
1136
+ if (envAfterDotEnv) {
1137
+ this.env = envAfterDotEnv;
1138
+ }
1135
1139
  this.loadConfigFiles();
1136
1140
  this.checkConflicts();
1137
1141
  if (context && typeof context.registerCleanup === "function") {
@@ -2696,6 +2700,8 @@ async function init(flow2, opts = {}) {
2696
2700
  }
2697
2701
  if (process.exitCode && process.exitCode !== 0) {
2698
2702
  process.exit(process.exitCode);
2703
+ } else if (stop) {
2704
+ process.exit(0);
2699
2705
  }
2700
2706
  }
2701
2707
  }