Skip to content

Commit fd49f2e

Browse files
filipesilvavikerman
authored andcommitted
test: disable typescript version check
1 parent 7612d3e commit fd49f2e

File tree

11 files changed

+49
-28
lines changed

11 files changed

+49
-28
lines changed

tests/angular_devkit/build_angular/hello-world-app-ve/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
]
2020
},
2121
"angularCompilerOptions": {
22-
"enableIvy": false
22+
"enableIvy": false,
23+
"disableTypeScriptVersionCheck": true
2324
}
2425
}

tests/angular_devkit/build_angular/hello-world-app/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@
1717
"es2017",
1818
"dom"
1919
]
20+
},
21+
"angularCompilerOptions": {
22+
"enableIvy": true,
23+
"disableTypeScriptVersionCheck": true
2024
}
2125
}

tests/angular_devkit/build_ng_packagr/ng-packaged-ve/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
]
1919
},
2020
"angularCompilerOptions": {
21-
"enableIvy": false
21+
"enableIvy": false,
22+
"disableTypeScriptVersionCheck": true
2223
}
2324
}

tests/angular_devkit/build_webpack/angular-app/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
]
1919
},
2020
"angularCompilerOptions": {
21-
"enableIvy": false
21+
"enableIvy": true,
22+
"disableTypeScriptVersionCheck": true
2223
}
2324
}

tests/legacy-cli/e2e/assets/webpack/test-app-weird/not/so/source/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"rootDir": "."
1818
},
1919
"angularCompilerOptions": {
20+
"enableIvy": true,
21+
"disableTypeScriptVersionCheck": true
2022
"genDir": "app/generated/",
2123
"entryModule": "app/app.module#AppModule"
2224
}

tests/legacy-cli/e2e/assets/webpack/test-app-weird/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "test",
33
"license": "MIT",
44
"dependencies": {
5-
"@angular/common": "^8.0.0-rc.0",
6-
"@angular/compiler": "^8.0.0-rc.0",
7-
"@angular/compiler-cli": "^8.0.0-rc.0",
8-
"@angular/core": "^8.0.0-rc.0",
9-
"@angular/platform-browser": "^8.0.0-rc.0",
10-
"@angular/platform-browser-dynamic": "^8.0.0-rc.0",
11-
"@angular/platform-server": "^8.0.0-rc.0",
12-
"@angular/router": "^8.0.0-rc.0",
5+
"@angular/common": "9.0.0-next.11",
6+
"@angular/compiler": "9.0.0-next.11",
7+
"@angular/compiler-cli": "9.0.0-next.11",
8+
"@angular/core": "9.0.0-next.11",
9+
"@angular/platform-browser": "9.0.0-next.11",
10+
"@angular/platform-browser-dynamic": "9.0.0-next.11",
11+
"@angular/platform-server": "9.0.0-next.11",
12+
"@angular/router": "9.0.0-next.11",
1313
"@ngtools/webpack": "0.0.0",
1414
"core-js": "^3.0.0",
1515
"rxjs": "^6.4.2",

tests/legacy-cli/e2e/assets/webpack/test-app/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "test",
33
"license": "MIT",
44
"dependencies": {
5-
"@angular/common": "9.0.0-next.7",
6-
"@angular/compiler": "9.0.0-next.7",
7-
"@angular/compiler-cli": "9.0.0-next.7",
8-
"@angular/core": "9.0.0-next.7",
9-
"@angular/platform-browser": "9.0.0-next.7",
10-
"@angular/platform-browser-dynamic": "9.0.0-next.7",
11-
"@angular/platform-server": "9.0.0-next.7",
12-
"@angular/router": "9.0.0-next.7",
5+
"@angular/common": "9.0.0-next.11",
6+
"@angular/compiler": "9.0.0-next.11",
7+
"@angular/compiler-cli": "9.0.0-next.11",
8+
"@angular/core": "9.0.0-next.11",
9+
"@angular/platform-browser": "9.0.0-next.11",
10+
"@angular/platform-browser-dynamic": "9.0.0-next.11",
11+
"@angular/platform-server": "9.0.0-next.11",
12+
"@angular/router": "9.0.0-next.11",
1313
"@ngtools/webpack": "0.0.0",
1414
"core-js": "^3.0.0",
1515
"rxjs": "^6.4.0",

tests/legacy-cli/e2e/assets/webpack/test-app/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"rootDir": "."
1919
},
2020
"angularCompilerOptions": {
21+
"enableIvy": true,
22+
"disableTypeScriptVersionCheck": true,
2123
"genDir": "./app/ngfactory",
2224
"entryModule": "app/app.module#AppModule"
2325
}

tests/legacy-cli/e2e/assets/webpack/test-server-app/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "test",
33
"license": "MIT",
44
"dependencies": {
5-
"@angular/animations": "^8.0.0-rc.0",
6-
"@angular/common": "^8.0.0-rc.0",
7-
"@angular/compiler": "^8.0.0-rc.0",
8-
"@angular/compiler-cli": "^8.0.0-rc.0",
9-
"@angular/core": "^8.0.0-rc.0",
10-
"@angular/platform-browser": "^8.0.0-rc.0",
11-
"@angular/platform-browser-dynamic": "^8.0.0-rc.0",
12-
"@angular/platform-server": "^8.0.0-rc.0",
13-
"@angular/router": "^8.0.0-rc.0",
5+
"@angular/animations": "9.0.0-next.11",
6+
"@angular/common": "9.0.0-next.11",
7+
"@angular/compiler": "9.0.0-next.11",
8+
"@angular/compiler-cli": "9.0.0-next.11",
9+
"@angular/core": "9.0.0-next.11",
10+
"@angular/platform-browser": "9.0.0-next.11",
11+
"@angular/platform-browser-dynamic": "9.0.0-next.11",
12+
"@angular/platform-server": "9.0.0-next.11",
13+
"@angular/router": "9.0.0-next.11",
1414
"@ngtools/webpack": "0.0.0",
1515
"core-js": "^3.0.0",
1616
"rxjs": "^6.4.2",

tests/legacy-cli/e2e/assets/webpack/test-server-app/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"rootDir": "."
1919
},
2020
"angularCompilerOptions": {
21+
"enableIvy": false,
22+
"disableTypeScriptVersionCheck": true,
2123
"genDir": "./app/ngfactory",
2224
"entryModule": "app/app.module#AppModule"
2325
}

tests/legacy-cli/e2e/utils/project.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ export async function createProject(name: string, ...args: string[]) {
3939
await ng('new', name, '--skip-install', ...extraArgs, ...args);
4040
process.chdir(name);
4141

42+
if (fs.existsSync('tsconfig.json')) {
43+
// Disable the TS version check to make TS updates easier.
44+
// Only VE does it, but on Ivy the i18n extraction uses VE.
45+
await updateJsonFile('tsconfig.json', config => {
46+
config.angularCompilerOptions.disableTypeScriptVersionCheck = true;
47+
});
48+
}
49+
4250
await prepareProjectForE2e(name);
4351
}
4452

0 commit comments

Comments
 (0)