File tree 1 file changed +17
-1
lines changed
tests/legacy-cli/e2e/tests/misc
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default async function () {
15
15
await createDir ( 'xyz' ) ;
16
16
await moveFile (
17
17
'node_modules/@angular/common' ,
18
- 'xyz/common'
18
+ 'xyz/common' ,
19
19
) ;
20
20
21
21
await expectToFail ( ( ) => ng ( 'build' ) ) ;
@@ -27,6 +27,22 @@ export default async function () {
27
27
} ) ;
28
28
await ng ( 'build' ) ;
29
29
30
+ await updateJsonFile ( 'tsconfig.json' , tsconfig => {
31
+ tsconfig . compilerOptions . paths = {
32
+ '*' : [ './node_modules/*' ] ,
33
+ '@angular/common' : [ './xyz/common' ] ,
34
+ } ;
35
+ } ) ;
36
+ await ng ( 'build' ) ;
37
+
38
+ await updateJsonFile ( 'tsconfig.json' , tsconfig => {
39
+ tsconfig . compilerOptions . paths = {
40
+ '@angular/common' : [ './xyz/common' ] ,
41
+ '*' : [ './node_modules/*' ] ,
42
+ } ;
43
+ } ) ;
44
+ await ng ( 'build' ) ;
45
+
30
46
await updateJsonFile ( 'tsconfig.json' , tsconfig => {
31
47
delete tsconfig . compilerOptions . paths ;
32
48
} ) ;
You can’t perform that action at this time.
0 commit comments