-
-
Notifications
You must be signed in to change notification settings - Fork 194
Description
When generating a new project using:
pnpm create better-t-stack@latest tanstack-check \ --frontend tanstack-router \ --backend hono \ --runtime node \ --api trpc \ --auth better-auth \ --payments none \ --database postgres \ --orm drizzle \ --db-setup docker \ --package-manager pnpm \ --git \ --web-deploy none \ --server-deploy none \ --no-install \ --addons biome turborepo \ --examples todo
The generated packages/db/tsconfig.json file includes:
{
"extends": "../../tsconfig.base.json",
}
After running:
turbo prune server --docker
the pruned output in out/full
correctly includes packages/db/tsconfig.json
,
but does not include the referenced tsconfig.base.json
, causing TypeScript build errors inside Docker.
Cause
This isn’t a bug in Turborepo — turbo prune
only copies relevant packages and the root package.json
, not other root-level files like tsconfig.base.json
.
Fix
Move base tsconfig into its own workspace package
// packages/db/tsconfig.json
{ "extends": "@repo/typescript-config/base.json" }
I would be happy to assist helping on this, would just need some guidance.