Skip to content

fix(npm): dynamically read version from package.json in beacon.js wrapper - #945

Merged
Scottcjn merged 1 commit into
Scottcjn:mainfrom
jmatson36097-blip:fix/issue-939-npm-version-read-package-json
Sep 22, 2026
Merged

Scottcjn merged 1 commit into
Scottcjn:mainfrom
jmatson36097-blip:fix/issue-939-npm-version-read-package-json

Conversation

@jmatson36097-blip

Copy link
Copy Markdown
Contributor

Summary of Changes

Fixes #939

  • Updated bin/beacon.js to load the package version from ../package.json rather than a stale hardcoded 1.0.0 constant.
  • Preserved fallback handling in case package.json is inaccessible.
  • Added regression unit test in tests/test_npm_wrapper.py asserting that node bin/beacon.js --version matches package.json.version.

Verification

  • Tested node bin/beacon.js --version output: 2.17.0.
  • Ran unit test suite python3 -m unittest tests/test_npm_wrapper.py: passed cleanly.

Closes Scottcjn#939
Dynamically load version from package.json instead of hardcoding 1.0.0 constant, and add regression unit test.
@github-actions

Copy link
Copy Markdown

Welcome to beacon-skill! Thanks for your first pull request.

Quick checklist:

  • Tests pass (pytest tests/)
  • New code includes SPDX license header
  • Focused on a single change

Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100)

A maintainer will review your PR soon!

@github-actions github-actions Bot added the size/S PR: 11-50 lines label Sep 21, 2026
@Scottcjn
Scottcjn merged commit fee6053 into Scottcjn:main Sep 22, 2026
2 checks passed
@jmatson36097-blip
jmatson36097-blip deleted the fix/issue-939-npm-version-read-package-json branch September 22, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S PR: 11-50 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm wrapper: beacon --version prints hard-coded 1.0.0 instead of package version 2.17.0

2 participants