Skip to content

Commit b5e8231

Browse files
committed
build: add yarn script alias for tsc
Adds a `yarn run` alias for the `tsc` binary. Since we have multiple versions of TypeScript installed, Yarn can pick another version (e.g. from `typescript-4.2`) for linking the `tsc` binary. This is unexpected because `yarn tsc` should resolve to the TypeScript version that is not installed through a Yarn alias. Changing the order in the Yarn lock file does not help, and it seems expected in the context of Yarn which does not know which package (regardless of alias or not) to prefer.
1 parent 523bfab commit b5e8231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"check-mdc-tests": "ts-node --project scripts/tsconfig.json scripts/check-mdc-tests.ts",
5151
"check-mdc-exports": "ts-node --project scripts/tsconfig.json scripts/check-mdc-exports.ts",
5252
"check-tools": "yarn tsc --project tools/tsconfig-ci.json",
53+
"tsc": "node ./node_modules/typescript/bin/tsc",
5354
"prepare": "husky install"
5455
},
5556
"version": "12.1.0-next.0",

0 commit comments

Comments
 (0)