File tree 2 files changed +3
-3
lines changed
packages/angular-cli/blueprints/ng2
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
"sourceMap" : true ,
12
12
"target" : " es5" ,
13
13
"typeRoots" : [
14
- " .. /node_modules/@types"
14
+ " <%= relativeRootPath %> /node_modules/@types"
15
15
]
16
16
}
17
17
}
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ module.exports = {
26
26
this . styleExt = options . style ;
27
27
this . version = require ( path . resolve ( __dirname , '../../package.json' ) ) . version ;
28
28
29
- // Join with / not path.sep as reference to typings require forward slashes.
30
- const relativeRootPath = options . sourceDir . split ( path . sep ) . map ( ( ) => '..' ) . join ( '/' ) ;
29
+ // Split/join with / not path.sep as reference to typings require forward slashes.
30
+ const relativeRootPath = options . sourceDir . split ( '/' ) . map ( ( ) => '..' ) . join ( '/' ) ;
31
31
const fullAppName = stringUtils . dasherize ( options . entity . name )
32
32
. replace ( / - ( .) / g, ( _ , l ) => ' ' + l . toUpperCase ( ) )
33
33
. replace ( / ^ ./ , ( l ) => l . toUpperCase ( ) ) ;
You can’t perform that action at this time.
0 commit comments