From 45a82b40b5568f5aa941a605b2cf921b7dc14784 Mon Sep 17 00:00:00 2001 From: d0wHc3r Date: Fri, 7 Feb 2020 22:07:10 +0100 Subject: [PATCH] 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 --- packages/node-dev/src/Build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node-dev/src/Build.ts b/packages/node-dev/src/Build.ts index 42e0c11e8..ddb74add0 100644 --- a/packages/node-dev/src/Build.ts +++ b/packages/node-dev/src/Build.ts @@ -64,7 +64,7 @@ export async function buildFiles (options?: IBuildOptions): Promise { 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();