Skip to content

Commit

Permalink
fix: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Feb 13, 2024
1 parent a97a3e5 commit bb1b876
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 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 --ext .tsx src"
},
"repository": {
Expand Down
29 changes: 29 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"extends": "@codingame/tsconfig",
"compilerOptions": {
"outDir": "dist/",
"rootDir": "src/",
"declaration": true,
"skipLibCheck": true,
"baseUrl": "./src",
"jsx": "react",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"module": "esnext",
"paths": {
"app/*": [
"*"
]
},
"sourceMap": true,
"target": "ES2022"
},
"include": ["src"],
"exclude": [
"dist",
"node_modules"
]
}
28 changes: 2 additions & 26 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
{
"extends": "@codingame/tsconfig",
"compilerOptions": {
"outDir": "dist/",
"declaration": true,
"skipLibCheck": true,
"baseUrl": "./src",
"jsx": "react",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"module": "esnext",
"paths": {
"app/*": [
"*"
]
},
"sourceMap": true,
"target": "ES2022"
},
"include": ["src", ".eslintrc.cjs"],
"exclude": [
"dist",
"node_modules"
]
"extends": "./tsconfig.build.json",
"include": ["src", ".eslintrc.cjs"]
}

0 comments on commit bb1b876

Please sign in to comment.