Skip to content

Commit c3d35b6

Browse files
committed
Remove obsolete ts-loader, enable TS type checks before tests.
1 parent 06c95fb commit c3d35b6

File tree

4 files changed

+32
-39
lines changed

4 files changed

+32
-39
lines changed

packages/integration-tests/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
1515
"lint:prettier": "prettier --check \"{suites,utils}/**/*.ts\"",
1616
"test:ci": "playwright test ./suites --browser='all' --reporter='line'",
17-
"pretest": "yarn clean",
17+
"type-check": "tsc",
18+
"pretest": "yarn clean && yarn type-check",
1819
"test": "playwright test ./suites"
1920
},
2021
"dependencies": {
@@ -23,7 +24,7 @@
2324
"handlebars-loader": "^1.7.1",
2425
"html-webpack-plugin": "^5.5.0",
2526
"playwright": "^1.17.1",
26-
"ts-loader": "^9.2.6",
27+
"typescript": "^4.5.2",
2728
"webpack": "^5.52.0"
2829
}
2930
}
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"compilerOptions": {
4-
"lib": ["dom", "es2019"]
5-
}
5+
"lib": ["dom", "es2019"],
6+
"moduleResolution": "node",
7+
"noEmit": true,
8+
"strict": true
9+
},
10+
"include": ["**/*.ts"],
11+
"exclude": ["node_modules"]
612
}

packages/integration-tests/webpack.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ const config = function(userConfig: Record<string, unknown>): Configuration {
1111
exclude: /node_modules/,
1212
loader: 'babel-loader',
1313
},
14-
{
15-
test: /\.ts$/,
16-
exclude: /node_modules/,
17-
loader: 'ts-loader',
18-
options: {
19-
// This has a big impact on test build speed.
20-
transpileOnly: true,
21-
},
22-
},
2314
{
2415
test: /\.hbs$/,
2516
exclude: /node_modules/,

yarn.lock

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9624,14 +9624,6 @@ enhanced-resolve@^4.0.0, enhanced-resolve@^4.5.0:
96249624
memory-fs "^0.5.0"
96259625
tapable "^1.0.0"
96269626

9627-
enhanced-resolve@^5.0.0, enhanced-resolve@^5.8.3:
9628-
version "5.8.3"
9629-
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz#6d552d465cce0423f5b3d718511ea53826a7b2f0"
9630-
integrity sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==
9631-
dependencies:
9632-
graceful-fs "^4.2.4"
9633-
tapable "^2.2.0"
9634-
96359627
enhanced-resolve@^5.3.2:
96369628
version "5.8.2"
96379629
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.2.tgz#15ddc779345cbb73e97c611cd00c01c1e7bf4d8b"
@@ -9640,6 +9632,14 @@ enhanced-resolve@^5.3.2:
96409632
graceful-fs "^4.2.4"
96419633
tapable "^2.2.0"
96429634

9635+
enhanced-resolve@^5.8.3:
9636+
version "5.8.3"
9637+
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz#6d552d465cce0423f5b3d718511ea53826a7b2f0"
9638+
integrity sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==
9639+
dependencies:
9640+
graceful-fs "^4.2.4"
9641+
tapable "^2.2.0"
9642+
96439643
enquirer@^2.3.5:
96449644
version "2.3.6"
96459645
resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d"
@@ -15074,14 +15074,6 @@ micromatch@^3.1.10, micromatch@^3.1.4:
1507415074
snapdragon "^0.8.1"
1507515075
to-regex "^3.0.2"
1507615076

15077-
micromatch@^4.0.0, micromatch@^4.0.4:
15078-
version "4.0.4"
15079-
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9"
15080-
integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
15081-
dependencies:
15082-
braces "^3.0.1"
15083-
picomatch "^2.2.3"
15084-
1508515077
micromatch@^4.0.2:
1508615078
version "4.0.2"
1508715079
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259"
@@ -15090,6 +15082,14 @@ micromatch@^4.0.2:
1509015082
braces "^3.0.1"
1509115083
picomatch "^2.0.5"
1509215084

15085+
micromatch@^4.0.4:
15086+
version "4.0.4"
15087+
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9"
15088+
integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
15089+
dependencies:
15090+
braces "^3.0.1"
15091+
picomatch "^2.2.3"
15092+
1509315093
miller-rabin@^4.0.0:
1509415094
version "4.0.1"
1509515095
resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
@@ -20653,16 +20653,6 @@ ts-jest@^24.3.0:
2065320653
semver "^5.5"
2065420654
yargs-parser "10.x"
2065520655

20656-
ts-loader@^9.2.6:
20657-
version "9.2.6"
20658-
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.2.6.tgz#9937c4dd0a1e3dbbb5e433f8102a6601c6615d74"
20659-
integrity sha512-QMTC4UFzHmu9wU2VHZEmWWE9cUajjfcdcws+Gh7FhiO+Dy0RnR1bNz0YCHqhI0yRowCE9arVnNxYHqELOy9Hjw==
20660-
dependencies:
20661-
chalk "^4.1.0"
20662-
enhanced-resolve "^5.0.0"
20663-
micromatch "^4.0.0"
20664-
semver "^7.3.4"
20665-
2066620656
ts-pnp@^1.1.6:
2066720657
version "1.2.0"
2066820658
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.2.0.tgz#a500ad084b0798f1c3071af391e65912c86bca92"
@@ -20860,6 +20850,11 @@ typescript@^3.9.5, typescript@^3.9.7:
2086020850
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.9.tgz#e69905c54bc0681d0518bd4d587cc6f2d0b1a674"
2086120851
integrity sha512-kdMjTiekY+z/ubJCATUPlRDl39vXYiMV9iyeMuEuXZh2we6zz80uovNN2WlAxmmdE/Z/YQe+EbOEXB5RHEED3w==
2086220852

20853+
typescript@^4.5.2:
20854+
version "4.5.4"
20855+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
20856+
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
20857+
2086320858
ua-parser-js@^0.7.18:
2086420859
version "0.7.26"
2086520860
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.26.tgz#b3731860e241419abd5b542b1a0881070d92e0ce"

0 commit comments

Comments
 (0)