Skip to content

Commit 8b564a0

Browse files
committed
fix: use yarn to find tsc and tsc-alias
1 parent 409db6f commit 8b564a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ clean:
3535
yarn dlx rimraf ./$(build_dir) src/generated tsconfig.build.tsbuildinfo
3636

3737
$(word 1, $(build_files)): $(src_files)
38-
./node_modules/.bin/tsc -p tsconfig.build.json
39-
@if [ -d "node_modules/tsc-alias" ]; then \
38+
yarn tsc -p tsconfig.build.json
39+
@if yarn info tsc-alias name --silent > /dev/null 2>&1; then \
4040
yarn tsc-alias --project tsconfig.build.json; \
4141
fi
4242

0 commit comments

Comments
 (0)