Skip to content

turbo prune --docker misses tsconfig.base.json used by generated packages #620

@moreorover

Description

@moreorover

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/typescript-config/package.json
{ "name": "@repo/typescript-config" }
// packages/db/tsconfig.json
{ "extends": "@repo/typescript-config/base.json" }

I would be happy to assist helping on this, would just need some guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions