name: library-build-sync
description: Use when creating or updating JavaScript/TypeScript libraries in this monorepo; require building the library first and then running yarn in _templates/react_template so the template picks up the latest local library version.
metadata:
short-description: Build libs, then sync React template
Library Build Sync
When to use
- You created or changed a JS/TS library in
packages/*. - You need
_templates/react_templateto use the latest library build.
Required workflow
- Build the changed library (or all libraries) with
yarn build. - After build is complete, run
yarninside_templates/react_template. - Continue normal Turborepo flow (
yarn build,yarn start, tests).
Command examples
- Single library:
cd packages/<library-name>yarn buildcd ../../_templates/react_templateyarn
- Full repo libraries:
cd /Users/m1max/IdeaProjects/infinitylooplabs/Platformyarn build:libscd _templates/react_templateyarn
Guardrails
- Do not skip library build before installing in React template.
- Do not skip
yarnin_templates/react_templateafter library changes. - If several libraries changed, finish all builds first, then run one
yarnin_templates/react_template.
Response requirement
- If this skill is used, the final assistant message must end with a short note confirming usage.
- Use this exact line at the end:
Библиотеки засинхронизированны.