build-and-deployment

Automate multi-package builds, tests, and CDK deployments in a TypeScript monorepo.

6|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/crmagz/cdk-constructs-library --skill build-and-deployment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-and-deployment
Source: https://github.com/crmagz/cdk-constructs-library/tree/main/.claude/skills/build-and-deployment
Command: npx skills add https://github.com/crmagz/cdk-constructs-library --skill build-and-deployment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill centralizes and automates the complex, multi-package build and deployment workflow for a TypeScript CDK monorepo, reducing manual setup and configuration drift.

Core Features & Use Cases

  • Deterministic, hermetic builds: Use Make targets to install, clean, and build in dependency order.
  • CDK workflow automation: Synthesize, diff, and deploy stacks across multiple accounts and environments.
  • TypeScript workspace management: Align tsconfig and workspace references to enable reliable cross-package builds.

Quick Start

Run the Makefile targets to install dependencies, build all packages in dependency order, synthesize the CDK app, and deploy stacks.

Frequently Asked Questions about build-and-deployment

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

FAQPage Schema
How do I automate multi-package builds in a TypeScript monorepo?

Automate TypeScript monorepo builds using Makefile targets to install dependencies, clean artifacts, and compile packages in strict dependency order. This centralizes workflow configuration and ensures deterministic, hermetic builds across all linked workspaces.

How does TypeScript project references linking work with workspace builds?

TypeScript project references align tsconfig files across workspaces to enable reliable cross-package builds. This setup ensures packages are compiled in the correct dependency order, preventing circular reference issues during automated monorepo builds.

What's the best way to deploy CDK stacks across multiple accounts?

Deploy CDK stacks across multiple accounts and environments using automated workflow targets. The process handles synthesizing CloudFormation templates, diffing changes, and executing environment-specific deployments to streamline multi-account management.

Can I use a Makefile to manage CDK synthesis and deployment steps?

Yes, Makefile targets drive the entire CDK workflow by orchestrating synthesis, diffing, and deployment steps. This approach provides deterministic execution for multi-account deployments alongside TypeScript monorepo build and test automation.

Why do my TypeScript monorepo builds fail due to dependency ordering?

TypeScript monorepo builds fail when packages compile before their dependencies. Using Make-driven targets with aligned project references ensures packages are built in correct dependency order, resolving cross-package compilation errors.

Do I need workspaces configuration to handle compile-time checks in a monorepo?

Yes, workspace linking combined with TypeScript project references is required to align tsconfig files. This configuration enables reliable compile-time checks and ensures cross-package builds execute correctly in dependency order.