typescript-monorepo

Configure TypeScript in Bun/npm workspaces monorepos with shared base config and per-package overrides.

2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/ftc8569/ftcmetrics --skill typescript-monorepo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-monorepo
Source: https://github.com/ftc8569/ftcmetrics/tree/main/.claude/skills/typescript-monorepo
Command: npx skills add https://github.com/ftc8569/ftcmetrics --skill typescript-monorepo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure TypeScript in a Bun/npm workspaces monorepo with shared base config, package-specific overrides, path aliases, and cross-package type sharing.

Core Features & Use Cases

  • Shared base TS config for all packages ensures consistency across web, api, db, and shared types.
  • Per-package tsconfig overrides (JSX, Node types, lib) to support web and server contexts.
  • Path aliases and cross-package imports enabling clean, maintainable code and reused types.

Quick Start

Create a Bun/npm workspace with packages/web, packages/api, packages/db, and packages/shared, extend each package tsconfig from the base, define path aliases, and enable cross-package type sharing.

Frequently Asked Questions about typescript-monorepo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a TypeScript monorepo with shared types and path aliases?

To set up a TypeScript monorepo, create a Bun or npm workspace with packages like web, api, db, and shared, extend each package tsconfig from a central base, and define path aliases to enable cross-package type sharing.

What is the best way to share a base tsconfig across multiple packages in a workspace?

The best way to share a base tsconfig is to create a central tsconfig.base.json and have per-package tsconfig.json files extend it, allowing package-specific overrides for JSX, Node types, and lib settings.

Does this TypeScript monorepo setup work with Bun workspaces?

Yes, this TypeScript monorepo setup works with both Bun and npm workspaces, configuring shared base TS config and cross-package imports seamlessly across your web, api, db, and shared packages.

How do I configure per-package tsconfig overrides for different environments like web and server?

You configure per-package tsconfig overrides by extending the shared base config and specifying environment settings like JSX for web contexts or Node types and lib for server contexts within each package.

Why do I need path aliases in a TypeScript monorepo?

You need path aliases in a TypeScript monorepo to enable clean cross-package imports and ensure proper type exports to consumers, resulting in maintainable code and reused shared types across packages.