Skip to content

Commit 2d80b4b

Browse files
authored
build(angular): Fix Nx dependency graph for Angular (#8841)
Angular `build:transpile` actually depends on types, so we need to reflect that - otherwise, `yarn build:dev` fails if no types are built yet.
1 parent 88611c7 commit 2d80b4b

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

packages/angular-ivy/package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,16 @@
6161
"volta": {
6262
"extends": "../../package.json"
6363
},
64-
"sideEffects": false
64+
"sideEffects": false,
65+
"nx": {
66+
"targets": {
67+
"build:transpile": {
68+
"dependsOn": [
69+
"^build:transpile",
70+
"^build:transpile:uncached",
71+
"^build:types"
72+
]
73+
}
74+
}
75+
}
6576
}

packages/angular/package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,16 @@
6565
"volta": {
6666
"extends": "../../package.json"
6767
},
68-
"sideEffects": false
68+
"sideEffects": false,
69+
"nx": {
70+
"targets": {
71+
"build:transpile": {
72+
"dependsOn": [
73+
"^build:transpile",
74+
"^build:transpile:uncached",
75+
"^build:types"
76+
]
77+
}
78+
}
79+
}
6980
}

0 commit comments

Comments
 (0)