Uh oh!
There was an error while loading. Please reload this page.
Add prepare script to support installing as a git dependency - #5
Merged
Conversation
npm auto-runs "prepare" after cloning a git dependency, so consumers can reference this repo directly via git+https instead of a pre-published tarball. Bumped to 1.0.6 since 1.0.5 is already tagged and immutable.
There was a problem hiding this comment.
Pull request overview
Adds an npm prepare hook so the package can be consumed via a git URL dependency by building lib/ after clone, alongside a version bump and changelog entry.
Changes:
- Bump package version to
1.0.6. - Add
preparescript to runbuild-npmautomatically. - Add a
1.0.6changelog entry describing the new install/build behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Adds prepare script and bumps version to support git-dependency installs that need a built lib/. |
| CHANGELOG.md | Documents the 1.0.6 change (added prepare script). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
16
to
+17
| "build-npm": "babel --stage 0 ./src -d ./lib --ignore __tests__/*", | ||
| "prepare": "npm run build-npm", |
Comment on lines
16
to
+17
| "build-npm": "babel --stage 0 ./src -d ./lib --ignore __tests__/*", | ||
| "prepare": "npm run build-npm", |
This was referenced Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
preparescript (npm run build-npm) so this package can be installed directly via a git URL (git+https://...#v1.0.6) instead of a pre-published tarball — npm auto-runsprepareafter cloning a git dependency, buildinglib/before the package is usable.Why
reporting-uiis moving off its internal Nexus npm registry to the public npm registry. This package isn't publishable there, so it needs an alternative distribution path. Referencing this repo as a git dependency (same pattern already used forreact-edit-inline) avoids checking a binary tarball intoreporting-ui.Test plan
npm run preparelocally — buildslib/*.jsfromsrc/*.jsvia babel successfully.require('./lib/DateTimeField.js')loads without error.reporting-uiand run its test suite.