Skip to content

Commit 5d931c1

Browse files
authored
Merge pull request #43 from CodinGame/fix-build
Fix build
2 parents a92fbdd + 36c6374 commit 5d931c1

File tree

3 files changed

+34
-29
lines changed

3 files changed

+34
-29
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"scripts": {
1010
"build": "npm run lint && npm run compile",
11-
"compile": "tsc",
11+
"compile": "tsc -p tsconfig.build.json",
1212
"lint": "eslint --ext .ts,.tsx src/"
1313
},
1414
"repository": {

tsconfig.build.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"extends": "@codingame/tsconfig",
3+
"compilerOptions": {
4+
"strict": true,
5+
"outDir": "dist/",
6+
"rootDir": "src/",
7+
"declaration": true,
8+
"allowSyntheticDefaultImports": true,
9+
"baseUrl": "./src",
10+
"jsx": "react",
11+
"lib": [
12+
"dom",
13+
"dom.iterable",
14+
"esnext"
15+
],
16+
"module": "esnext",
17+
"paths": {
18+
"app/*": [
19+
"*"
20+
]
21+
},
22+
"resolveJsonModule": true,
23+
"sourceMap": true,
24+
"target": "ES2022"
25+
},
26+
"include": ["src"],
27+
"exclude": [
28+
"dist",
29+
"node_modules"
30+
]
31+
}

tsconfig.json

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
{
2-
"extends": "@codingame/tsconfig",
3-
"compilerOptions": {
4-
"strict": true,
5-
"outDir": "dist/",
6-
"declaration": true,
7-
"allowSyntheticDefaultImports": true,
8-
"baseUrl": "./src",
9-
"jsx": "react",
10-
"lib": [
11-
"dom",
12-
"dom.iterable",
13-
"esnext"
14-
],
15-
"module": "esnext",
16-
"paths": {
17-
"app/*": [
18-
"*"
19-
]
20-
},
21-
"resolveJsonModule": true,
22-
"sourceMap": true,
23-
"target": "ES2022"
24-
},
25-
"include": ["src", ".eslintrc.cjs"],
26-
"exclude": [
27-
"dist",
28-
"node_modules"
29-
]
2+
"extends": "./tsconfig.build.json",
3+
"include": ["src", ".eslintrc.cjs"]
304
}

0 commit comments

Comments
 (0)