Skip to content

Commit 70f02ec

Browse files
matejchalkvmasek
authored andcommitted
Force exit process in @code-pushup/cli to fix hanging CI
1 parent f4b2cd6 commit 70f02ec

File tree

3 files changed

+194
-2
lines changed

3 files changed

+194
-2
lines changed

package-lock.json

Lines changed: 181 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
6+
"postinstall": "patch-package",
67
"coverage": "npx nx run-many -t test --coverage --skipNxCache",
78
"code-pushup": "npx @code-pushup/cli --no-progress --verbose"
89
},
@@ -34,9 +35,9 @@
3435
"@angular/language-service": "19.0.4",
3536
"@code-pushup/cli": "^0.56.0",
3637
"@code-pushup/coverage-plugin": "^0.56.0",
37-
"@code-pushup/js-packages-plugin": "^0.56.0",
38-
"@code-pushup/eslint-plugin": "^0.56.0",
3938
"@code-pushup/eslint-config": "^0.10.8",
39+
"@code-pushup/eslint-plugin": "^0.56.0",
40+
"@code-pushup/js-packages-plugin": "^0.56.0",
4041
"@code-pushup/portal-client": "^0.9.0",
4142
"@code-pushup/utils": "^0.56.0",
4243
"@eslint/js": "^9.8.0",
@@ -73,6 +74,7 @@
7374
"jest-environment-jsdom": "^29.7.0",
7475
"jest-preset-angular": "14.4.2",
7576
"nx": "20.2.2",
77+
"patch-package": "^8.0.0",
7678
"prettier": "^2.6.2",
7779
"ts-jest": "^29.1.0",
7880
"ts-node": "10.9.1",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
diff --git a/node_modules/@code-pushup/cli/index.js b/node_modules/@code-pushup/cli/index.js
2+
index 6b1a119..a9de404 100755
3+
--- a/node_modules/@code-pushup/cli/index.js
4+
+++ b/node_modules/@code-pushup/cli/index.js
5+
@@ -4260,3 +4260,4 @@ var cli = (args) => yargsCli(args, {
6+
7+
// packages/cli/src/index.ts
8+
await cli(hideBin(process.argv)).argv;
9+
+process.exit(0)

0 commit comments

Comments
 (0)