chore: tibi-types als Submodul, validate bricht bei Warnings ab

- tibi-types nach ./tibi-types als Submodul (relativ ../tibi-types.git), CI holt es via submodules:true
- tsconfig + validate enthalten Sibling und ./tibi-types (Fallback, fehlende Pfade ignoriert TS)
- yarn validate mit --fail-on-warnings
This commit is contained in:
2026-10-05 16:58:52 +00:00
parent 4ba3cab451
commit 99ce7a6a44
5 changed files with 8 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "tibi-types"]
path = tibi-types
url = ../tibi-types.git
+1 -1
View File
@@ -6,7 +6,7 @@
"author": "Sebastian Frank <sebastian@webmakers.de>", "author": "Sebastian Frank <sebastian@webmakers.de>",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"validate": "svelte-check --tsconfig ./tsconfig.validate.json && tsc --noEmit -p ./tsconfig.validate.json", "validate": "svelte-check --tsconfig ./tsconfig.validate.json --fail-on-warnings && tsc --noEmit -p ./tsconfig.validate.json",
"dev": "node scripts/esbuild-wrapper.js watch", "dev": "node scripts/esbuild-wrapper.js watch",
"start": "node scripts/esbuild-wrapper.js start", "start": "node scripts/esbuild-wrapper.js start",
"start:mock": "MOCK=1 node scripts/esbuild-wrapper.js start", "start:mock": "MOCK=1 node scripts/esbuild-wrapper.js start",
Submodule
+1
Submodule tibi-types added at 5e04a1ca3a
+2 -2
View File
@@ -1,8 +1,8 @@
{ {
"extends": "@tsconfig/svelte/tsconfig.json", "extends": "@tsconfig/svelte/tsconfig.json",
"include": ["frontend/src/**/*", "types/**/*", "./../../cms/tibi-types", "api/**/*"], "include": ["frontend/src/**/*", "types/**/*", "./../../cms/tibi-types", "./tibi-types", "api/**/*"],
"exclude": ["**/app.server.js", "**/app.server.js.map", "_temp/**", "./../../cms/tibi-types/scripts"], "exclude": ["**/app.server.js", "**/app.server.js.map", "_temp/**", "./../../cms/tibi-types/scripts", "./tibi-types/scripts"],
"compilerOptions": { "compilerOptions": {
"module": "esnext", "module": "esnext",
"typeRoots": ["./node_modules/@types", "./types"], "typeRoots": ["./node_modules/@types", "./types"],
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"include": ["frontend/src/**/*", "types/**/*", "api/**/*", "./../../cms/tibi-types/index.d.ts"], "include": ["frontend/src/**/*", "types/**/*", "api/**/*", "./../../cms/tibi-types/index.d.ts", "./tibi-types/index.d.ts"],
"exclude": [ "exclude": [
"_temp/**", "_temp/**",
"api/hooks/lib/app.server.js", "api/hooks/lib/app.server.js",