
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
gulp-unify-versions
Advanced tools
Unify the version numbers in manifest files
npm i -D gulp-unify-versions
This is useful when you want to synchronize the version of the manifest file in conjunction with the npm version command.
For example:
Add the following task to gulpfile.js
.
const gulp = require('gulp');
exports['version:unify'] = async function () {
const unify = require('gulp-unify-versions');
return gulp.src('./manifest.json')
.pipe(unify('./package.json'))
.pipe(gulp.dest('./'));
}
Add a version
script to package.json
as follows.
"script": {
+ "version": "gulp version:unify && git add manifest.json"
}
When npm version patch
is executed, the version
of package.json
and the version
of manifest.json
are the same.
Bug reports and pull requests are welcome on GitHub at https://github.com/naokikimura/gulp-unify-versions
The gem is available as open source under the terms of the MIT License.
FAQs
Unify the version numbers in manifest files
We found that gulp-unify-versions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.