fix: use .bin for tsc

Use "tsc" executable in .bit folder from node_modules, this will help in monorepos using lerna hoist (or yarn workspaces) because node_modules dependencies are not installed in all packages
This commit is contained in:
d0wHc3r 2020-02-07 22:07:10 +01:00 committed by GitHub
parent e742c8695b
commit 45a82b40b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ export async function buildFiles (options?: IBuildOptions): Promise<string> {
options = options || {};
// Get the path of the TypeScript cli of this project
const tscPath = join(__dirname, '../../node_modules/typescript/bin/tsc');
const tscPath = join(__dirname, '../../node_modules/.bin/tsc');
const tsconfigData = await createCustomTsconfig();