@karmaniverous/get-dotenv 2.3.2 → 2.3.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.
@@ -136,13 +136,10 @@ if (command || program.args.length) {
136
136
  .map((c) => parseArgsStringToArgv(c));
137
137
 
138
138
  for (const argv of argvs) {
139
- const { error, status } = spawn.sync(argv[0], argv.slice(1), {
139
+ const { status } = spawn.sync(argv[0], argv.slice(1), {
140
140
  stdio: 'inherit',
141
141
  });
142
142
 
143
- if (throwError) {
144
- if (error) throw error;
145
- if (status) throw new Error(`exited with code ${status}`);
146
- }
143
+ if (status && throwError) process.exit(status);
147
144
  }
148
145
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": {
4
4
  "getdotenv": "bin/getdotenv/index.js"
5
5
  },
6
- "version": "2.3.2",
6
+ "version": "2.3.3",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },