typescript

Sets up a TypeScript Lambda monorepo with pnpm workspaces and Turborepo tasks.

2|1|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/lambdamechanic/skills --skill typescript-lambdamechanic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/lambdamechanic/skills/tree/main/typescript
Command: npx skills add https://github.com/lambdamechanic/skills --skill typescript-lambdamechanic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up a consistent and efficient TypeScript development environment across multiple projects can be time-consuming and lead to fragmentation. This Skill provides a standardized default TypeScript stack, leveraging pnpm workspaces and Turborepo for task orchestration, strict TypeScript configurations, and developer experience helpers, automating your project setup.

Core Features & Use Cases

  • Workspace & Package Manager: Standardizes on pnpm (9.x+) with pnpm-workspace.yaml for monorepo management.
  • Turbo as the Task Graph: Integrates Turborepo for efficient task orchestration, caching, and pipeline management across packages.
  • TS Baseline: Defines strict TypeScript configuration (strict: true, ESM, Node 18+) and project reference setup for multi-package builds.
  • Standard Scripts: Recommends consistent typecheck, lint, build, and test scripts for all packages.
  • DX & Code Hygiene: Tips for using tsx, validating inputs with zod, preferring unknown over any, and robust error handling.
  • Lint / Format: Specifies ESLint with @typescript-eslint/parser and recommended configs, along with Prettier for formatting.
  • Maintenance Extras: Suggests tools like Knip/depcheck for unused code and Changesets for package versioning.

Quick Start

Set up a new TypeScript project using the default Lambda stack with pnpm workspaces and Turborepo.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I set up a TypeScript monorepo with pnpm and Turborepo?

Set up a TypeScript monorepo by configuring pnpm workspaces with a `pnpm-workspace.yaml` file, establishing a root `tsconfig.json` with strict mode enabled, and integrating Turborepo via `turbo.json` to orchestrate lint, test, build, and typecheck scripts across packages. This standardizes your multi-package build pipeline and caching.

What are the strict TypeScript configuration requirements for a monorepo baseline?

A monorepo baseline requires `strict: true` in TypeScript, ES modules with `type: module`, Node 18+ (prefer 20), composite project references between packages, and a root `tsconfig.json` that each package extends. Define root scripts for lint, test, build, and typecheck to enforce consistency.

Can I use pnpm workspaces with Turborepo for task orchestration?

Yes. pnpm workspaces manage your monorepo's package dependencies, while Turborepo orchestrates tasks across packages with caching and efficient pipeline execution. Together they enable consistent workflows: pnpm handles dependencies, Turborepo handles task automation and performance optimization.

What developer experience tools are recommended alongside TypeScript in a monorepo?

Use ESLint with `@typescript-eslint/parser`, Prettier for code formatting, `tsx` for running TypeScript directly, and `zod` for input validation. Include Knip or depcheck to identify unused code and Changesets for package versioning—these enforce code hygiene and maintainability.

Do I need Node 18+ to run this TypeScript stack?

Yes. This TypeScript stack requires Node 18 or higher (version 20 preferred) to support ES modules natively, strict TypeScript configurations, and modern monorepo tooling like pnpm and Turborepo at their recommended versions.