Skip to content

Commit 7471541

Browse files
authored
Merge pull request #34 from CodinGame/fix-build
Fix build
2 parents a97a3e5 + bb1b876 commit 7471541

File tree

3 files changed

+32
-27
lines changed

3 files changed

+32
-27
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 --ext .tsx src"
1313
},
1414
"repository": {

tsconfig.build.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": "@codingame/tsconfig",
3+
"compilerOptions": {
4+
"outDir": "dist/",
5+
"rootDir": "src/",
6+
"declaration": true,
7+
"skipLibCheck": 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+
"sourceMap": true,
22+
"target": "ES2022"
23+
},
24+
"include": ["src"],
25+
"exclude": [
26+
"dist",
27+
"node_modules"
28+
]
29+
}

tsconfig.json

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

0 commit comments

Comments
 (0)