Skip to content

Commit fdcd289

Browse files
committed
docs: adjust nx targets
1 parent 5fb3d87 commit fdcd289

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/cli/docs/nx-caching.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
},
5252
"code-pushup-coverage": {
5353
"cache": true,
54-
"outputs": ["{options.outputPath}"],
54+
"outputs": ["{options.persist.outputDir}/coverage"],
5555
"executor": "nx:run-commands",
5656
"options": {
5757
"command": "npx @code-pushup/cli collect",
@@ -65,25 +65,26 @@ export default {
6565
},
6666
"upload": {
6767
"project": "{projectName}"
68-
},
69-
"outputPath": "{projectRoot}/.code-pushup/coverage"
68+
}
7069
},
7170
"dependsOn": ["unit-test", "int-test"]
7271
},
7372
"code-pushup": {
7473
"cache": true,
75-
"outputs": ["{options.outputPath}"],
74+
"outputs": ["{options.persist.outputDir}"],
7675
"executor": "nx:run-commands",
7776
"options": {
7877
"command": "npx @code-pushup/cli",
7978
"config": "{projectRoot}/code-pushup.config.ts",
8079
"cache": {
8180
"read": true
8281
},
82+
"persist": {
83+
"outputDir": ".code-pushup"
84+
},
8385
"upload": {
8486
"project": "{projectName}"
85-
},
86-
"outputPath": "{projectRoot}/.code-pushup"
87+
}
8788
},
8889
"dependsOn": ["code-pushup:coverage"]
8990
}

0 commit comments

Comments
 (0)