feat: enable installation from GitHub for monorepo packages#554
feat: enable installation from GitHub for monorepo packages#554myers wants to merge 1 commit intopmndrs:mainfrom
Conversation
|
|
@myers is attempting to deploy a commit to the Poimandres Team on Vercel. A member of the Team first needs to authorize it. |
This change allows Leva and its plugins to be installed directly from GitHub using pnpm. This is useful for testing unreleased features or using forked versions before PRs are merged. The implementation uses lifecycle event detection and path-based patterns to identify git installations and automatically build production artifacts during installation. This ensures consumers receive fully built packages without requiring local development dependencies. Changes: - Add postinstall script with git install detection via lifecycle events - Add prepare scripts to root and all packages for publish/git install support - Support pnpm's store tmp directory pattern for reliable detection - Enable git installation for all plugin packages (spring, dates, bezier, plot) - Skip builds appropriately for sub-dependencies and local development Installation example: pnpm add "leva@github:user/leva#branch&path:/packages/leva"
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4d30eef:
|
This change allows Leva and its plugins to be installed directly from GitHub using pnpm. This is useful for testing unreleased features or using forked versions before PRs are merged.
Installation example:
pnpm add "leva@github:user/leva#branch&path:/packages/leva"
The implementation uses lifecycle event detection and path-based patterns to identify git installations and automatically build production artifacts during installation. This ensures consumers receive fully built packages without requiring local development dependencies.
Changes: