Skip to content

Commit c4b025c

Browse files
committed
build(models-transformers): cache ts-patch install
1 parent 7ed8e49 commit c4b025c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/models/transformers/project.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,17 @@
77
"build": {
88
"executor": "@nx/js:tsc",
99
"outputs": ["{options.outputPath}"],
10-
"dependsOn": [
11-
{
12-
"target": "pre-build"
13-
}
14-
],
10+
"dependsOn": ["pre-build"],
1511
"options": {
1612
"outputPath": "packages/models/transformers/dist",
1713
"main": "packages/models/transformers/src/index.ts",
1814
"tsConfig": "packages/models/transformers/tsconfig.lib.json"
1915
}
2016
},
2117
"pre-build": {
22-
"executor": "nx:run-commands",
23-
"options": {
24-
"command": "npx ts-patch install"
25-
}
18+
"command": "ts-patch install",
19+
"cache": true,
20+
"inputs": ["sharedGlobals", { "runtime": "ts-patch check" }]
2621
}
2722
}
2823
}

0 commit comments

Comments
 (0)