@@ -5,6 +5,7 @@ const { switchMap, switchMapTo, tap } = require('rxjs/operators');
55const { copy, readFileSync, writeFile, writeFileSync, statSync } = require ( 'fs-extra' ) ;
66const { prettySize } = require ( 'pretty-size' ) ;
77const gzipSize = require ( 'gzip-size' ) ;
8+ const path = require ( 'path' ) ;
89const resolve = require ( 'rollup-plugin-node-resolve' ) ;
910const pkg = require ( `${ process . cwd ( ) } /package.json` ) ;
1011
@@ -124,8 +125,10 @@ const DEST_PKG_PATHS = {
124125} ;
125126
126127// Constants for running typescript commands
127- const TSC = 'node_modules/.bin/tsc' ;
128- const NGC = 'node_modules/.bin/ngc' ;
128+ const binSuffix = process . platform === "win32" ? '.cmd' : '' ;
129+ const TSC = path . normalize ( 'node_modules/.bin/tsc' + binSuffix ) ;
130+ const NGC = path . normalize ( 'node_modules/.bin/ngc' + binSuffix ) ;
131+
129132const TSC_ARGS = ( name , config = 'build' ) => [ `-p` , `${ process . cwd ( ) } /src/${ name } /tsconfig-${ config } .json` ] ;
130133const TSC_TEST_ARGS = [ `-p` , `${ process . cwd ( ) } /src/tsconfig-test.json` ] ;
131134
@@ -408,4 +411,4 @@ database-deprecated.umd.js - ${dbdepStats.size}, ${dbdepStats.gzip}
408411 } ) ) ;
409412}
410413
411- buildLibrary ( GLOBALS ) . subscribe ( ( ) => { } , err => { console . error ( err ) } ) ;
414+ buildLibrary ( GLOBALS ) . subscribe ( ( ) => { } , err => { console . error ( err ) } ) ;
0 commit comments