Ensure manifest.json version always matches the package.json #29
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.
This pull request improves the consistency and automation of version management between
package.jsonandmanifest.json, and enhances the developer workflow by updating pre-commit hooks and adding a test for version synchronization. The most important changes are grouped below:Version Synchronization and Automation:
syncManifestVersionscript to check if the versions inpackage.jsonandmanifest.jsonare already in sync before updating, and to log clear messages about the synchronization status.manifest.jsonbefore running linting, ensuring version consistency is enforced on every commit. (.husky/pre-commit,.husky/setup-hooks.js) [1] [2]Testing and Validation:
test/version-consistency.test.ts) to verify that theversionfields inpackage.jsonandmanifest.jsonalways match.Dependency and Metadata Updates:
versionfield in bothpackage.jsonandmanifest.jsonto0.4.2to reflect the latest release. [1] [2]Code Quality:
.husky/setup-hooks.jsto use thenode:prefix, aligning with modern Node.js best practices.These changes help ensure that version mismatches are caught early, reduce manual steps for developers, and maintain a more reliable release process.