@@ -5,6 +5,7 @@ const { switchMap, switchMapTo, tap } = require('rxjs/operators');
5
5
const { copy, readFileSync, writeFile, writeFileSync, statSync } = require ( 'fs-extra' ) ;
6
6
const { prettySize } = require ( 'pretty-size' ) ;
7
7
const gzipSize = require ( 'gzip-size' ) ;
8
+ const path = require ( 'path' ) ;
8
9
const resolve = require ( 'rollup-plugin-node-resolve' ) ;
9
10
const pkg = require ( `${ process . cwd ( ) } /package.json` ) ;
10
11
@@ -124,8 +125,10 @@ const DEST_PKG_PATHS = {
124
125
} ;
125
126
126
127
// 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
+
129
132
const TSC_ARGS = ( name , config = 'build' ) => [ `-p` , `${ process . cwd ( ) } /src/${ name } /tsconfig-${ config } .json` ] ;
130
133
const TSC_TEST_ARGS = [ `-p` , `${ process . cwd ( ) } /src/tsconfig-test.json` ] ;
131
134
@@ -408,4 +411,4 @@ database-deprecated.umd.js - ${dbdepStats.size}, ${dbdepStats.gzip}
408
411
} ) ) ;
409
412
}
410
413
411
- buildLibrary ( GLOBALS ) . subscribe ( ( ) => { } , err => { console . error ( err ) } ) ;
414
+ buildLibrary ( GLOBALS ) . subscribe ( ( ) => { } , err => { console . error ( err ) } ) ;
0 commit comments