feat(scripts): enhance version script and update badges dynamically in README

- Added a new `version` script in `package.json` to execute `generate-version.js` for automated version management.
- Enhanced `generate-version.js` to dynamically update badges in `README.md` for npm version, Node.js version, and TypeScript version.
- Modified badge update logic to retrieve Node.js and TypeScript versions from `package.json` for accuracy.
- Updated `VERSION` constant in `version.ts` to `0.9.7` to reflect the latest release.
- Streamlined the versioning process for better maintainability and consistency in documentation.
This commit is contained in:
David Snelling 2025-06-24 10:57:27 -07:00
parent 5e773e0110
commit 1c68d51be1
3 changed files with 27 additions and 8 deletions

View file

@ -34,6 +34,7 @@
"start": "node dist/unified.js",
"demo": "npm run build && npm run build:browser && npx http-server -o /index.html",
"cli": "node ./cli-wrapper.js",
"version": "node scripts/generate-version.js",
"version:patch": "npm version patch",
"version:minor": "npm version minor",
"version:major": "npm version major",