Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit c916008

Browse files
authored
fix(core): Fix canary release by excluding test files from default tsconfig (#5317)
For some reason, test files in the tsconfig are causing package/<component>/index.js not to be generated when running npm run build:esmodules, leading to a failure in the canary release: https://github.com/material-components/material-components-web/runs/340549500
1 parent 0ec1fab commit c916008

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

karma.conf.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ const jasmineConfig = {
142142
},
143143
},
144144
},
145+
exclude: [
146+
'scripts/**/*.ts',
147+
],
145148
reports: {
146149
html: 'coverage',
147150
lcovonly: 'coverage',
@@ -150,7 +153,7 @@ const jasmineConfig = {
150153
filename: 'coverage.json',
151154
},
152155
},
153-
tsconfig: './tsconfig.json',
156+
tsconfig: './tsconfig-base.json',
154157
},
155158
preprocessors: FILES_TO_USE.reduce((obj, file) => {
156159
obj[file] = 'karma-typescript';

tsconfig-base.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"downlevelIteration": true,
5+
"emitDecoratorMetadata": true,
6+
"esModuleInterop": true,
7+
"experimentalDecorators": true,
8+
"lib": ["es5", "es6", "dom"],
9+
"moduleResolution": "node",
10+
"newLine": "lf",
11+
"noEmitOnError": false,
12+
"noErrorTruncation": true,
13+
"noFallthroughCasesInSwitch": true,
14+
"noStrictGenericChecks": true,
15+
"noUnusedLocals": true,
16+
"noUnusedParameters": true,
17+
"preserveConstEnums": true,
18+
"pretty": true,
19+
"skipLibCheck": true,
20+
"sourceMap": true,
21+
"strict": true,
22+
"stripInternal": true,
23+
"target": "es5",
24+
"types": []
25+
}
26+
}

tsconfig.json

+5-26
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
11
{
2-
"compilerOptions": {
3-
"declaration": true,
4-
"downlevelIteration": true,
5-
"emitDecoratorMetadata": true,
6-
"esModuleInterop": true,
7-
"experimentalDecorators": true,
8-
"lib": ["es5", "es6", "dom"],
9-
"moduleResolution": "node",
10-
"newLine": "lf",
11-
"noEmitOnError": false,
12-
"noErrorTruncation": true,
13-
"noFallthroughCasesInSwitch": true,
14-
"noStrictGenericChecks": true,
15-
"noUnusedLocals": true,
16-
"noUnusedParameters": true,
17-
"preserveConstEnums": true,
18-
"pretty": true,
19-
"skipLibCheck": true,
20-
"sourceMap": true,
21-
"strict": true,
22-
"stripInternal": true,
23-
"target": "es5",
24-
"types": []
25-
},
262
"exclude": [
27-
"scripts/**/*.ts"
28-
]
3+
"packages/**/test/*.ts",
4+
"scripts/**/*.ts",
5+
"testing/**/*.ts"
6+
],
7+
"extends": "./tsconfig-base.json"
298
}

0 commit comments

Comments
 (0)