Skip to content

build: run full build in prepare so git installs produce dist/#1

Merged
lionelchamorro merged 1 commit into
mainfrom
build/git-install-prepare
Jun 19, 2026
Merged

build: run full build in prepare so git installs produce dist/#1
lionelchamorro merged 1 commit into
mainfrom
build/git-install-prepare

Conversation

@lionelchamorro

Copy link
Copy Markdown
Contributor

What

Change the prepare script from panda codegen to the full build (codegen + tsc + vite + cssgen + fonts).

Why

dist/ is gitignored, so consumers that install @aymurai/ui as a git dependency (e.g. git+ssh://...#<sha> from the desktop-app) only get the prepare lifecycle. With prepare running codegen alone, no dist/ is produced and the @aymurai/ui import resolves to nothing.

Pointing prepare at the full build makes a git-installed package self-build into compiled output, so private consumers don't need a published tarball or registry.

Verified: rm -rf dist && pnpm build produces index.js/cjs, index.d.ts, styles.css, fonts.css.

🤖 Generated with Claude Code

Consumers installing @aymurai/ui as a git dependency (git+ssh) only run the
`prepare` lifecycle, which previously ran `panda codegen` alone and left no
built `dist/`. Point `prepare` at the full `build` (codegen + tsc + vite +
cssgen + fonts) so a git-installed package resolves to compiled output.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lionelchamorro! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@lionelchamorro lionelchamorro merged commit 8c93508 into main Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant