split tsconfig

This commit is contained in:
Peter Fajdiga
2024-04-17 21:36:31 +02:00
parent a4ba8516dc
commit bebc009cc6
3 changed files with 8 additions and 6 deletions

View File

@@ -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

6
src/main/tsconfig.json Normal file
View File

@@ -0,0 +1,6 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
}
}

View File

@@ -3,14 +3,10 @@
"target": "es2020",
"lib": ["es2020"],
"module": "none",
"rootDir": "./src",
"allowJs": false,
"esModuleInterop": false,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"include": [
"src/**/*"
]
}
}