Skip to content

Conversation

@myers
Copy link
Contributor

@myers myers commented Oct 17, 2025

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:

  • 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

@changeset-bot
Copy link

changeset-bot bot commented Oct 17, 2025

⚠️ No Changeset found

Latest commit: 4d30eef

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 17, 2025

@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"
@codesandbox-ci
Copy link

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:

Sandbox Source
leva-minimal Configuration
leva-busy Configuration
leva-scroll Configuration
leva-advanced-panels Configuration
leva-ui Configuration
leva-theme Configuration
leva-transient Configuration
leva-plugin-plot Configuration
leva-plugin-bezier Configuration
leva-plugin-spring Configuration
leva-plugin-dates Configuration
leva-custom-plugin Configuration

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