From 36c6374b03a538fa31ce044d5025e1a7bb274b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Tue, 13 Feb 2024 18:04:21 +0100 Subject: [PATCH] fix: fix build --- package.json | 2 +- tsconfig.build.json | 31 +++++++++++++++++++++++++++++++ tsconfig.json | 30 ++---------------------------- 3 files changed, 34 insertions(+), 29 deletions(-) create mode 100644 tsconfig.build.json diff --git a/package.json b/package.json index ee13bcf..ea80897 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..ae1f12a --- /dev/null +++ b/tsconfig.build.json @@ -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" + ] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index ff74c98..809248f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] } \ No newline at end of file