@dotenvx/dotenvx 2.16.0 → 2.16.1

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/CHANGELOG.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- [Unreleased](https://github.com/dotenvx/dotenvx/compare/v2.16.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v2.16.1...main)
6
+
7
+ ## [2.16.1](https://github.com/dotenvx/dotenvx/compare/v2.16.0...v2.16.1) (2026-07-21)
8
+
9
+ ### Changed
10
+
11
+ * Fix: Do not report child error - let child do so. ([#914](https://github.com/dotenvx/dotenvx/pull/914))
6
12
 
7
13
  ## [2.16.0](https://github.com/dotenvx/dotenvx/compare/v2.15.1...v2.16.0) (2026-07-21)
8
14
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.16.0",
2
+ "version": "2.16.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a secure dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -174,14 +174,18 @@ async function executeCommand (commandArgs, env, sensitiveValues = []) {
174
174
 
175
175
  if (exitCode !== 0) {
176
176
  logger.debug(`received exitCode ${exitCode}`)
177
- throw new Errors({ exitCode }).commandExitedWithCode()
177
+ const error = new Errors({ exitCode }).commandExitedWithCode()
178
+ error.exitCode = exitCode
179
+ throw error
178
180
  }
179
181
  } catch (error) {
182
+ const commandExited = Number.isInteger(error.exitCode) && (error.code === 'COMMAND_EXITED_WITH_CODE' || error.command)
183
+
180
184
  // no color on these errors as they can be standard errors for things like jest exiting with exitCode 1 for a single failed test.
181
185
  if (!['SIGINT', 'SIGTERM'].includes(signalSent || error.signal)) {
182
186
  if (error.code === 'ENOENT') {
183
187
  logger.error(`Unknown command: ${error.command}`)
184
- } else {
188
+ } else if (!commandExited) {
185
189
  logger.error(redactOutput(error.message, sensitiveValues))
186
190
  }
187
191
  }