Repository navigation
chore(*): remove global grunt-cli postinstall - #2301
Merged
Merged
Conversation
The postinstall script ran `npm install -g grunt-cli` on every install, including when the repository is consumed as a dependency. The local `grunt` package already ships the `grunt` binary, so the build runs through npm scripts instead and nothing is installed globally. - CI and publish workflows call `npm run build` - README and CONTRIBUTING use `npm run build` / `npx grunt verify` Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, with the global Grunt installation removed and project-local build and verification commands consistently documented and used.
No open issues 🎉
What changed in this PR
This pull request removes the global grunt-cli installation side effect and updates CI and documentation to use locally installed Grunt tooling.
Changes:
- Removed the root
postinstallscript that installedgrunt-cliglobally. - Updated GitHub Actions workflows and README instructions to use
npm run build. - Updated contributor verification instructions to use
npx grunt verify. - Regeneration of
package-lock.jsonis requested because its root metadata still indicates an install script.
| File | Description |
|---|---|
| README.md | Updates the documented build command to use the project-local npm build script. |
| package.json | Removes the global Grunt CLI postinstall hook while retaining the local build script. |
| .github/workflows/npm-publish.yml | Runs the project build through npm run build before publishing. |
| .github/workflows/node.js.yml | Runs the CI build through npm run build. |
| .github/CONTRIBUTING.md | Updates contributor verification instructions to use the local Grunt binary through npx. |
Review effort: Lite
The [ID14] show/hide details test waited a fixed 500ms after clicking, which equals the slideToggle duration, so on slower CI runners the timer could fire before the animation's final frame and the file container was not yet hidden. Wait on the element's fx queue promise instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 free
to 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.
The
postinstallscript rannpm install -g grunt-clion everynpm install— including when this repository is installed as a dependency of another project, where a global install is an unwanted side effect.The local
gruntdev dependency already provides thegruntbinary (node_modules/.bin/grunt), so nothing needs to be installed globally:package.json: thepostinstallscript is removednpm run buildinstead of a baregrunt buildnpm run build/npx grunt verify.travis.ymlstill has a baregrunt build; it is left untouched since Travis is no longer used for this repo.Verified locally on a clean clone:
npm ci,npm run build(1039 files indist/) andnpx grunt hintall pass without a globalgrunt-cli.Additional information (check all that apply):
Checklist:
README.MD🤖 Generated with Claude Code