Run typescript using npx tsc command as that will use typescript version specified in package.json file. This ensures that breaking changes in TS compiler will not break the build.
Also use npx tsc instead of tsc in "scripts" section of package.json.
Run typescript using
npx tsc
command as that will use typescript version specified in package.json file. This ensures that breaking changes in TS compiler will not break the build.Also use
npx tsc
instead oftsc
in "scripts" section ofpackage.json
.