Skip to content

Update README#464

Merged
esezen merged 1 commit into
masterfrom
nocdx-update-readme-for-version-command
Jun 11, 2026
Merged

Update README#464
esezen merged 1 commit into
masterfrom
nocdx-update-readme-for-version-command

Conversation

@esezen

@esezen esezen commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 11, 2026 14:39
@esezen esezen requested a review from a team as a code owner June 11, 2026 14:39

@constructor-claude-bedrock constructor-claude-bedrock 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.

Code Review

This PR improves the README by documenting the npm version gotcha caused by ignore-scripts=true in .npmrc, and restructures the existing prepare/husky note for clarity. The changes are accurate, well-explained, and fill a real gap in contributor documentation.

Inline comments: 2 discussions added

Overall Assessment: ✅ Pass

Comment thread README.md
npm run coverage # run tests and serves coverage reports from localhost:8081
npm run docs # output documentation to `./docs` directory

npm version <patch|minor|major> --ignore-scripts=false # bump version (see note below)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The --ignore-scripts=false flag overrides the .npmrc setting globally for that invocation, which is exactly right. However, the inline comment # bump version (see note below) is the only forward-reference to the note in the code block — the note itself now appears immediately after, so the comment still works. One minor readability improvement: consider shortening the comment to just # see note below since "bump version" is already conveyed by the command itself, reducing redundancy.

Comment thread README.md
> **Note:** `.npmrc` sets `ignore-scripts=true` for supply-chain safety, so lifecycle scripts (including husky's hook installation) do not run automatically on `npm install`. Run `npm run prepare` once after cloning to enable the `pre-push` lint hook.
> **Note:** `.npmrc` sets `ignore-scripts=true` for supply-chain safety, so lifecycle scripts do not run automatically. This affects two workflows:
> - **husky git hooks:** run `npm run prepare` once after cloning to enable the `pre-push` lint hook.
> - **`npm version`:** the `version` lifecycle script (which regenerates `src/version.js`, docs, and the `./dist` bundle and stages them into the release commit) is skipped. Always pass `--ignore-scripts=false` when bumping the version so these artifacts are regenerated.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: This is accurate and matches what package.json's version script actually does (node ./src/generateVersion.js && npm run docs && git add ./docs/* && npm run bundle && git add -A ./dist && git add ./src/version.js). For extra safety and discoverability, consider adding a note that --ignore-scripts=false only needs to be paired with npm version (not npm publish, which uses prepublish), so contributors aren't confused about whether they need the flag for other npm lifecycle events.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the README to document the impact of .npmrc’s ignore-scripts=true on common workflows, and to ensure version bumps regenerate required artifacts.

Changes:

  • Adds an npm version example command that explicitly enables lifecycle scripts.
  • Expands the existing note to clarify which workflows are affected and what to do.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
npm run coverage # run tests and serves coverage reports from localhost:8081
npm run docs # output documentation to `./docs` directory

npm version <patch|minor|major> --ignore-scripts=false # bump version (see note below)
@esezen esezen merged commit 7b1b512 into master Jun 11, 2026
13 of 14 checks passed
@esezen esezen deleted the nocdx-update-readme-for-version-command branch June 11, 2026 16:41
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.

3 participants