Install it next to TypeScript:
pnpm add -D @hapi/tsconfig typescriptThen extend it from the project's tsconfig.json:
{
"extends": "@hapi/tsconfig"
}Only compilerOptions are worth sharing this way, include, exclude, outDir and other paths resolve relative to the file declaring them, so they stay in the project's own tsconfig.json, along with any option it needs to override:
{
"extends": "@hapi/tsconfig",
"compilerOptions": {
"types": ["node"]
},
"include": ["src", "test"]
}The config only type-checks (noEmit), builds are left to the project's bundler.
