diff --git a/packages/node-dev/src/Build.ts b/packages/node-dev/src/Build.ts index b631f46e45..ce2f16a263 100644 --- a/packages/node-dev/src/Build.ts +++ b/packages/node-dev/src/Build.ts @@ -63,8 +63,15 @@ export async function createCustomTsconfig () { 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/.bin/tsc'); + let typescriptPath; + + // Check for OS to designate correct tsc path + if (process.platform === 'win32') { + typescriptPath = '../../node_modules/TypeScript/lib/tsc'; + } else { + typescriptPath = '../../node_modules/.bin/tsc'; + } + const tscPath = join(__dirname, typescriptPath); const tsconfigData = await createCustomTsconfig();