File tree 2 files changed +10
-1
lines changed
packages/angular_devkit/build_angular/src
angular-cli-files/utilities
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,13 @@ export function readTsconfig(tsconfigPath: string) {
16
16
const configResult = projectTs . readConfigFile ( tsconfigPath , projectTs . sys . readFile ) ;
17
17
const tsConfig = projectTs . parseJsonConfigFileContent ( configResult . config , projectTs . sys ,
18
18
path . dirname ( tsconfigPath ) , undefined , tsconfigPath ) ;
19
+
20
+ if ( tsConfig . errors . length > 0 ) {
21
+ throw new Error (
22
+ `Errors found while reading ${ tsconfigPath } :\n ${
23
+ tsConfig . errors . map ( e => e . messageText ) . join ( '\n ' )
24
+ } `
25
+ )
26
+ }
19
27
return tsConfig ;
20
28
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
import { BuildResult , WebpackLoggingCallback , runWebpack } from '@angular-devkit/build-webpack' ;
14
14
import {
15
15
experimental ,
16
+ getSystemPath ,
16
17
join ,
17
18
json ,
18
19
logging ,
@@ -185,7 +186,7 @@ export function buildWebpackBrowser(
185
186
normalize ( workspace . getProject ( projectName ) . root ) ,
186
187
) ;
187
188
188
- const tsConfigPath = path . resolve ( workspace . root , options . tsConfig ) ;
189
+ const tsConfigPath = path . resolve ( getSystemPath ( workspace . root ) , options . tsConfig ) ;
189
190
const tsConfig = readTsconfig ( tsConfigPath ) ;
190
191
191
192
if ( isEs5SupportNeeded ( projectRoot ) &&
You can’t perform that action at this time.
0 commit comments