Skip to content

Commit 25c0dbb

Browse files
authored
chore: build typedefs for all packages before typechecking (#1202)
## Summary Sometimes package A depends on package B, and needs to read its typedefs to be able to typecheck _itself_. This implies that typedefs need to be built _before_ typechecking. This PR adds `compile:typedefs` as a dependency of `test:typecheck`.
1 parent 1a51843 commit 25c0dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

turbo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"outputs": ["dist/**", "lib/**"]
1616
},
1717
"compile:typedefs": {
18-
"dependsOn": ["clean", "compile:js"],
18+
"dependsOn": ["clean", "compile:js", "^compile:typedefs"],
1919
"inputs": ["rollup.config.types.js", "tsconfig.*", "src/**"],
2020
"outputs": ["declarations/**", "dist/**/*.d.ts", "lib/**/*.d.ts"]
2121
},
@@ -50,7 +50,7 @@
5050
"outputs": []
5151
},
5252
"test:typecheck": {
53-
"dependsOn": ["compile:js"],
53+
"dependsOn": ["compile:js", "compile:typedefs"],
5454
"inputs": ["tsconfig.*", "src/**", "test/**"],
5555
"outputs": []
5656
},

0 commit comments

Comments
 (0)