Construction de monorepo avec Turborepo

VérifiéSûr

Construit tous les paquets du monorepo Topographic Studio avec Turborepo. Identifie les erreurs de build (TypeScript, imports, fichiers manquants) en précisant le paquet concerné et le message d'erreur. Affiche un récapitulatif des paquets construits avec succès et le temps d'exécution.

Spar Skills Guide Bot
DeveloppementIntermédiaire
6002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#monorepo#turborepo#build#bun#typescript

Recommandé pour

Notre avis

Construit tous les packages d'un monorepo Turborepo avec des rapports d'erreur détaillés.

Points forts

  • Utilise le cache de Turborepo pour des builds optimisés
  • Identifie les packages en échec avec messages d'erreur spécifiques
  • Permet de filtrer par package grâce à l'option --filter

Limites

  • Nécessite Bun et Turborepo dans l'environnement
  • Suppose que le projet suit la structure @topographic-studio/*
  • Ne gère pas les builds non-monorepo
Quand l'utiliser

Quand vous devez construire l'ensemble d'un monorepo Turborepo et obtenir un résumé clair des résultats.

Quand l'éviter

Quand vous ne souhaitez construire qu'un seul package ou que le projet n'est pas un monorepo.

Analyse de sécurité

Sûr
Score qualité75/100

The skill instructs the user to run standard build commands (bun run build, turbo run build) in a known monorepo. No destructive actions, external downloads, or data exfiltration are involved.

Aucun point d'attention détecté

Exemples

Build all packages
Build all packages in the monorepo using Turborepo.
Build a specific package
Build only the @topographic-studio/ui package in our monorepo.

Monorepo Build Skill

Build all packages in the Topographic Studio monorepo using Turborepo.

Task

You are helping the user build all packages in the monorepo.

Instructions

  1. Navigate to the monorepo root directory
  2. Run the build command with Turborepo
  3. Report any build errors with specific package names and error messages
  4. If successful, show a summary of built packages

Commands

# Build all packages
bun run build

# Build with cache info
turbo run build --summarize

# Build specific package
turbo run build --filter=@topographic-studio/ui

Success Criteria

  • All packages build without errors
  • No TypeScript errors
  • dist/ directories created for each package
  • Build artifacts are properly generated

Error Handling

If build fails:

  1. Identify which package failed
  2. Show the specific error message
  3. Suggest fixes based on the error type:
    • TypeScript errors → Check type definitions
    • Import errors → Verify package dependencies
    • Missing files → Check file paths

Output Format

Provide a clear summary:

✅ Built 4 packages successfully:
  - @topographic-studio/ui
  - @topographic-studio/utils
  - @topographic-studio/config
  - @topographic-studio/types

Build time: 3.2s
Skills similaires