File tree 2 files changed +6
-6
lines changed
packages/schematics/angular/application
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 {
55
55
56
56
return chain ( [
57
57
addAppToWorkspaceFile ( options , appDir , folderName ) ,
58
- addTsProjectReference ( join ( normalize ( appDir ) , 'tsconfig.app.json' ) ) ,
58
+ addTsProjectReference ( './' + join ( normalize ( appDir ) , 'tsconfig.app.json' ) ) ,
59
59
options . skipTests
60
60
? noop ( )
61
- : addTsProjectReference ( join ( normalize ( appDir ) , 'tsconfig.spec.json' ) ) ,
61
+ : addTsProjectReference ( './' + join ( normalize ( appDir ) , 'tsconfig.spec.json' ) ) ,
62
62
options . standalone
63
63
? noop ( )
64
64
: schematic ( 'module' , {
Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ describe('Application Schematic', () => {
115
115
116
116
const { references } = readJsonFile ( tree , '/tsconfig.json' ) ;
117
117
expect ( references ) . toContain (
118
- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.app.json' } ) ,
118
+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.app.json' } ) ,
119
119
) ;
120
120
expect ( references ) . toContain (
121
- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.spec.json' } ) ,
121
+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.spec.json' } ) ,
122
122
) ;
123
123
} ) ;
124
124
@@ -131,10 +131,10 @@ describe('Application Schematic', () => {
131
131
132
132
const { references } = readJsonFile ( tree , '/tsconfig.json' ) ;
133
133
expect ( references ) . toContain (
134
- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.app.json' } ) ,
134
+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.app.json' } ) ,
135
135
) ;
136
136
expect ( references ) . not . toContain (
137
- jasmine . objectContaining ( { path : 'projects/foo/tsconfig.spec.json' } ) ,
137
+ jasmine . objectContaining ( { path : './ projects/foo/tsconfig.spec.json' } ) ,
138
138
) ;
139
139
} ) ;
140
140
You can’t perform that action at this time.
0 commit comments