script/update-package.json.js
function updateVersion2gitTag(pkg) {
	let tag = child_process.execSync('git describe --tag').toString().trim();
	pkg.version = tag;
}
function updateVersion2gitTag(pkg) {
	let tag = child_process.execSync('git describe --tag').toString().trim();
	pkg.version = tag;
}
function updateVersion2gitTag ( pkg ) { let tag = child_process . execSync ( 'git describe --tag' ) . toString ( ) . trim ( ) ; pkg . version = tag ; }
Will throw if not on a tag
Will throw if not on a tag