File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/angular-cli/blueprints/ng2 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111 "sourceMap" : true ,
1212 "target" : " es5" ,
1313 "typeRoots" : [
14- " .. /node_modules/@types"
14+ " <%= relativeRootPath %> /node_modules/@types"
1515 ]
1616 }
1717}
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ module.exports = {
2626 this . styleExt = options . style ;
2727 this . version = require ( path . resolve ( __dirname , '../../package.json' ) ) . version ;
2828
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 ( '/' ) ;
3131 const fullAppName = stringUtils . dasherize ( options . entity . name )
3232 . replace ( / - ( .) / g, ( _ , l ) => ' ' + l . toUpperCase ( ) )
3333 . replace ( / ^ ./ , ( l ) => l . toUpperCase ( ) ) ;
You can’t perform that action at this time.
0 commit comments