From bebc009cc68f5094acf820de694b6bef132a06bd Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Wed, 17 Apr 2024 21:36:31 +0200 Subject: [PATCH] split tsconfig --- Makefile | 2 +- src/main/tsconfig.json | 6 ++++++ tsconfig.json => src/tsconfig.json | 6 +----- 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 src/main/tsconfig.json rename tsconfig.json => src/tsconfig.json (78%) diff --git a/Makefile b/Makefile index 19e00a8..158fd1d 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ config: tsc ${TSC_SCRIPT_FLAGS} ./src/config/definition.ts ./generators/config/kcfg.ts --outFile /dev/stdout | node - > ./package/contents/config/main.xml build: - tsc --outFile ./package/contents/code/main.js + tsc -p ./src/main --outFile ./package/contents/code/main.js install: build config kpackagetool6 --type=KWin/Script -i ./package || kpackagetool6 --type=KWin/Script -u ./package diff --git a/src/main/tsconfig.json b/src/main/tsconfig.json new file mode 100644 index 0000000..520ed8e --- /dev/null +++ b/src/main/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "rootDir": ".", + } +} diff --git a/tsconfig.json b/src/tsconfig.json similarity index 78% rename from tsconfig.json rename to src/tsconfig.json index 81dbe54..713b624 100644 --- a/tsconfig.json +++ b/src/tsconfig.json @@ -3,14 +3,10 @@ "target": "es2020", "lib": ["es2020"], "module": "none", - "rootDir": "./src", "allowJs": false, "esModuleInterop": false, "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true - }, - "include": [ - "src/**/*" - ] + } }