File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/schematics/angular/application Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ export default function (options: ApplicationOptions): Rule {
5555
5656 return chain ( [
5757 addAppToWorkspaceFile ( options , appDir , folderName ) ,
58- addTsProjectReference ( join ( normalize ( appDir ) , 'tsconfig.app.json' ) ) ,
58+ addTsProjectReference ( './' + join ( normalize ( appDir ) , 'tsconfig.app.json' ) ) ,
5959 options . skipTests
6060 ? noop ( )
61- : addTsProjectReference ( join ( normalize ( appDir ) , 'tsconfig.spec.json' ) ) ,
61+ : addTsProjectReference ( './' + join ( normalize ( appDir ) , 'tsconfig.spec.json' ) ) ,
6262 options . standalone
6363 ? noop ( )
6464 : schematic ( 'module' , {
Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ describe('Application Schematic', () => {
115115
116116 const { references } = readJsonFile ( tree , '/tsconfig.json' ) ;
117117 expect ( references ) . toContain (
118- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.app.json' } ) ,
118+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.app.json' } ) ,
119119 ) ;
120120 expect ( references ) . toContain (
121- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.spec.json' } ) ,
121+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.spec.json' } ) ,
122122 ) ;
123123 } ) ;
124124
@@ -131,10 +131,10 @@ describe('Application Schematic', () => {
131131
132132 const { references } = readJsonFile ( tree , '/tsconfig.json' ) ;
133133 expect ( references ) . toContain (
134- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.app.json' } ) ,
134+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.app.json' } ) ,
135135 ) ;
136136 expect ( references ) . not . toContain (
137- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.spec.json' } ) ,
137+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.spec.json' } ) ,
138138 ) ;
139139 } ) ;
140140
You can’t perform that action at this time.
0 commit comments