Skip to content

Commit

Permalink
Merge pull request #43 from CodinGame/fix-build
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
CGNonofr authored Feb 13, 2024
2 parents a92fbdd + 36c6374 commit 5d931c1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"build": "npm run lint && npm run compile",
"compile": "tsc",
"compile": "tsc -p tsconfig.build.json",
"lint": "eslint --ext .ts,.tsx src/"
},
"repository": {
Expand Down
31 changes: 31 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"extends": "@codingame/tsconfig",
"compilerOptions": {
"strict": true,
"outDir": "dist/",
"rootDir": "src/",
"declaration": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "./src",
"jsx": "react",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"module": "esnext",
"paths": {
"app/*": [
"*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"target": "ES2022"
},
"include": ["src"],
"exclude": [
"dist",
"node_modules"
]
}
30 changes: 2 additions & 28 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
{
"extends": "@codingame/tsconfig",
"compilerOptions": {
"strict": true,
"outDir": "dist/",
"declaration": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "./src",
"jsx": "react",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"module": "esnext",
"paths": {
"app/*": [
"*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"target": "ES2022"
},
"include": ["src", ".eslintrc.cjs"],
"exclude": [
"dist",
"node_modules"
]
"extends": "./tsconfig.build.json",
"include": ["src", ".eslintrc.cjs"]
}

0 comments on commit 5d931c1

Please sign in to comment.