forked from kubernetes-client/javascript
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion-check.js
More file actions
Latest commit
9 lines (9 loc) · 526 Bytes
/
Copy pathversion-check.js
File metadata and controls
9 lines (9 loc) · 526 Bytes
1
2
3
4
5
6
7
8
9
// This script is supposed to be run in travis to check package version matches
// because of this it is designed to be run on a "clean" git checkout
// this will fail if run after npm install (since npm install updates package-lock)
constpackageVersion=require('./package.json').version
constlockVersion=require('./package-lock.json').version
if(packageVersion!=lockVersion){
console.log(`version in package.json (${packageVersion}) does not match package-lock.json (${lockVersion})`);
process.exit(1);
}