Unverified Commit 5bb39954 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

Fix typescript setup for `packages/font` and `turbo/generators` (#67687)

- Include test files when type checking `packages/font`, while still excluding them in `build`.
- Include `turbo/generators` files in root `tsconfig.json` so that they are type checked as well.
parent 0e9109e3
......@@ -13,7 +13,7 @@
],
"license": "MIT",
"scripts": {
"build": "node ../../scripts/rm.mjs dist && pnpm ncc-fontkit && tsc -d -p tsconfig.json",
"build": "node ../../scripts/rm.mjs dist && pnpm ncc-fontkit && tsc -d -p tsconfig.build.json",
"prepublishOnly": "cd ../../ && turbo run build",
"dev": "pnpm ncc-fontkit && tsc -d -w -p tsconfig.json",
"typescript": "tsec --noEmit -p tsconfig.json",
......
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"]
}
......@@ -8,6 +8,5 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "src/**/*.test.ts"]
"include": ["src/**/*.ts"]
}
......@@ -20,5 +20,10 @@
"test-log": ["./test/lib/test-log"]
}
},
"include": ["test/**/*.test.ts", "test/**/*.test.tsx", "test/lib/**/*.ts"]
"include": [
"test/**/*.test.ts",
"test/**/*.test.tsx",
"test/lib/**/*.ts",
"turbo/**/*.ts"
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment