build-package

Build a single NX package with automatic upstream dependency resolution.

38|15|Updated Jul 26, 2023
One-click install
npx skills add https://github.com/sisense/compose-sdk-monorepo --skill build-package-sisense
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-package
Source: https://github.com/sisense/compose-sdk-monorepo/tree/main/.claude/skills/build-package
Command: npx skills add https://github.com/sisense/compose-sdk-monorepo --skill build-package-sisense

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build a robust, targeted build workflow for a single package inside a large NX monorepo, reducing time and noise from rebuilding unrelated packages.

Core Features & Use Cases

  • Targeted package builds: Build one package and its upstream dependencies deterministically.
  • Dependency-aware caching: Leverages NX to cache and reuse previous build outputs.
  • Rebuild after changes: Quickly rebuild a single package after edits to validate changes.

Quick Start

Run a focused build for a single package using NX.

Frequently Asked Questions about build-package

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

FAQPage Schema
How do I build a single NX package in a monorepo without rebuilding everything?

To build a single NX package in a monorepo, you can target a specific package name to execute a focused build. This automatically resolves upstream dependencies and reuses cached outputs, avoiding the noise of rebuilding unrelated workspace packages.

Why does my NX monorepo build take so long when I only changed one package?

Full workspace builds take long because they process all packages instead of just the changed one. Running a targeted build for a single NX package resolves only its upstream dependencies, leveraging caching to provide quick feedback and deterministic results.

Can I rebuild one package after edits to validate changes in an NX workspace?

Yes, you can rebuild one package after edits to validate changes in an NX workspace. By applying a targeted build with a specific package name, the process deterministically rebuilds only that package and its resolved upstream dependencies.

Do I need Yarn and NX tooling to run targeted package builds?

Yes, you need Yarn and NX tooling to run targeted package builds. This workflow requires the NX environment and a package name argument to drive the build process, resolve dependencies, and provide deterministic results.

What is the best way to validate build outputs for a single SDK package?

The best way to validate build outputs for a single SDK package is executing a targeted build within your NX monorepo. This approach focuses solely on one package and its upstream dependencies, providing quick feedback without touching the entire workspace.

How does dependency-aware caching work for targeted package builds?

Dependency-aware caching for targeted package builds leverages NX to cache and reuse previous build outputs. When you build a single package, the system automatically resolves its upstream dependencies, ensuring deterministic results while skipping unchanged workspace components.