mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
openzeppelin-contracts/scripts/release/update-ethpm-version.js

16 lines
425 B

#!/usr/bin/env node
// Synchronizes ethpm.json version number with package.json.
// This is run automatically when npm version is run.
const fs = require('fs');
const cp = require('child_process');
const pkg = require('../../package.json');
const ethpm = require('../../ethpm.json');
ethpm.version = pkg.version;
fs.writeFileSync('ethpm.json', JSON.stringify(ethpm, null, 2) + '\n');
cp.execSync('git add ethpm.json');