Skip to content

Commit 992cfc2

Browse files
authored
chore(dev-env): Use referenced project for typescript code building (#9381)
We must use the referenced project (building typescript code from the root) because it resolves the dependency graph.
1 parent bf09dae commit 992cfc2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dev-env.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ install_root_dependencies() {
1818
build_packages() {
1919
echo "Building all packages..."
2020
cd "$SCRIPT_DIR"
21+
22+
# Building typescript packages first from root (it's referenced project)
23+
yarn tsc
24+
2125
for package in packages/*; do
2226
if [ -d "$package" ]; then
2327
echo "Building $package..."
2428
cd "$package"
25-
if ! yarn build 2>/dev/null; then
26-
#echo "yarn build failed for $package, trying yarn tsc..."
27-
yarn tsc 2>/dev/null || true
28-
fi
29+
yarn build 2>/dev/null || true
2930
cd "$SCRIPT_DIR"
3031
fi
3132
done

0 commit comments

Comments
 (0)