chore(versioning): switch to standard-version for automated changelog generation

This change implements standard-version for versioning and changelog management:
- Adds standard-version as a dev dependency
- Updates package.json scripts to use standard-version
- Creates .versionrc.json configuration file
- Updates CHANGELOG.md with instructions for conventional commits
- Removes obsolete manual changelog update script
This commit is contained in:
David Snelling 2025-07-31 13:15:04 -07:00
parent c3c4ca31e1
commit fda949aed2
4 changed files with 1824 additions and 23 deletions

View file

@ -54,19 +54,19 @@
"build:browser": "BUILD_TYPE=browser rollup -c rollup.config.js",
"start": "node dist/unified.js",
"demo": "npm run build && npm run build:browser && npx http-server -o /demo/index.html",
"version": "echo 'Version updated in package.json'",
"version:patch": "npm version patch && node scripts/update-changelog.js",
"version:minor": "npm version minor && node scripts/update-changelog.js",
"version:major": "npm version major && node scripts/update-changelog.js",
"changelog:update": "node scripts/update-changelog.js",
"changelog:check": "echo 'Please ensure CHANGELOG.md [Unreleased] section has your changes before releasing'",
"release": "standard-version",
"release:patch": "standard-version --release-as patch",
"release:minor": "standard-version --release-as minor",
"release:major": "standard-version --release-as major",
"release:dry-run": "standard-version --dry-run",
"changelog:check": "echo 'Changelog is now automatically generated from commit messages'",
"lint": "eslint --ext .ts,.js src/",
"lint:fix": "eslint --ext .ts,.js src/ --fix",
"format": "prettier --write \"src/**/*.{ts,js}\"",
"check:format": "prettier --check \"src/**/*.{ts,js}\"",
"check:style": "node scripts/check-code-style.js",
"prepare": "npm run build",
"deploy": "npm run build && npm publish && node scripts/create-github-release.js",
"deploy": "npm run build && npm run release && npm publish && node scripts/create-github-release.js",
"dry-run": "npm pack --dry-run",
"test": "vitest run",
"test:watch": "vitest",
@ -148,6 +148,7 @@
"puppeteer": "^22.5.0",
"rollup": "^4.13.0",
"rollup-plugin-terser": "^7.0.2",
"standard-version": "^9.5.0",
"tslib": "^2.6.2",
"typescript": "^5.4.5",
"vitest": "^3.2.4"