fix: exit with non-zero exit code when child process fails

This commit is contained in:
Zoltan Kochan
2022-11-30 22:09:24 +02:00
parent a5690f4946
commit 93558ce68f
3 changed files with 17 additions and 11 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/lifecycle": patch
"pnpm": patch
---
Exit with non-zero exit code when child process exits with a non-zero exit clode [#5525](https://github.com/pnpm/pnpm/issues/5525).

View File

@@ -37,7 +37,7 @@
"dependencies": {
"@pnpm/core-loggers": "workspace:*",
"@pnpm/directory-fetcher": "workspace:*",
"@pnpm/npm-lifecycle": "^2.0.0-1",
"@pnpm/npm-lifecycle": "^2.0.0",
"@pnpm/read-package-json": "workspace:*",
"@pnpm/store-controller-types": "workspace:*",
"@pnpm/types": "workspace:*",

20
pnpm-lock.yaml generated
View File

@@ -907,8 +907,8 @@ importers:
specifier: ^5.0.0
version: 5.0.0
'@pnpm/npm-lifecycle':
specifier: ^2.0.0-1
version: 2.0.0-1_typanion@3.12.1
specifier: ^2.0.0
version: 2.0.0_typanion@3.12.1
'@pnpm/read-package-json':
specifier: workspace:*
version: link:../../pkg-manifest/read-package-json
@@ -7537,7 +7537,7 @@ packages:
'@pnpm/core-loggers': 8.0.2_@pnpm+logger@5.0.0
'@pnpm/directory-fetcher': 5.1.0_@pnpm+logger@5.0.0
'@pnpm/logger': 5.0.0
'@pnpm/npm-lifecycle': 2.0.0-1_typanion@3.12.1
'@pnpm/npm-lifecycle': 2.0.0_typanion@3.12.1
'@pnpm/read-package-json': 7.0.2
'@pnpm/store-controller-types': 14.1.5
'@pnpm/types': 8.9.0
@@ -7784,11 +7784,12 @@ packages:
'@pnpm/network.ca-file': 1.0.1
config-chain: 1.1.13
/@pnpm/npm-lifecycle/2.0.0-1_typanion@3.12.1:
resolution: {integrity: sha512-eUeRVUxnr9xP50ESMuRDrWYN/AQmaV2g/Wvs3ckHBx7XFJw8ljix66L7R1S1FoUqxNn0BeyPeIE9ANwn/syIAQ==}
/@pnpm/npm-lifecycle/2.0.0_typanion@3.12.1:
resolution: {integrity: sha512-613qs9UwSFFVhXPv94Rt3tpJGv/D6mkHkZsByhHgBJII9gJXQ+bq4uru8y5q5g/kggS0raNH+18YGd9eu0Nawg==}
engines: {node: '>=12.17'}
dependencies:
'@pnpm/byline': 1.0.0
'@pnpm/error': 4.0.0
'@yarnpkg/shell': 3.2.0-rc.8_typanion@3.12.1
node-gyp: 8.4.1
resolve-from: 5.0.0
@@ -9674,7 +9675,7 @@ packages:
glob: 7.2.3
infer-owner: 1.0.4
lru-cache: 6.0.0
minipass: 3.3.4
minipass: 3.3.5
minipass-collect: 1.0.2
minipass-flush: 1.0.5
minipass-pipeline: 1.2.4
@@ -13632,7 +13633,7 @@ packages:
https-proxy-agent: 5.0.1
is-lambda: 1.0.1
lru-cache: 6.0.0
minipass: 3.3.4
minipass: 3.3.5
minipass-collect: 1.0.2
minipass-fetch: 1.4.1
minipass-flush: 1.0.5
@@ -13925,7 +13926,7 @@ packages:
resolution: {integrity: sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==}
engines: {node: '>=8'}
dependencies:
minipass: 3.3.4
minipass: 3.3.5
minipass-sized: 1.0.3
minizlib: 2.1.2
optionalDependencies:
@@ -13972,7 +13973,6 @@ packages:
engines: {node: '>=8'}
dependencies:
yallist: 4.0.0
dev: true
/minizlib/2.1.2:
resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}
@@ -17410,7 +17410,7 @@ time:
/@pnpm/network.agent/0.0.3: '2022-06-12T19:51:53.044Z'
/@pnpm/nopt/0.2.1: '2021-06-01T19:45:54.552Z'
/@pnpm/npm-conf/2.0.4: '2022-11-11T20:26:48.028Z'
/@pnpm/npm-lifecycle/2.0.0-1: '2022-02-21T22:36:47.308Z'
/@pnpm/npm-lifecycle/2.0.0: '2022-11-30T19:58:42.868Z'
/@pnpm/npm-package-arg/1.0.0: '2022-06-28T12:48:31.287Z'
/@pnpm/os.env.path-extender/0.2.8: '2022-11-21T01:38:43.315Z'
/@pnpm/ramda/0.28.1: '2022-08-03T13:56:59.597Z'