Fix linter error

This commit is contained in:
Nicolás Venturo
2019-07-27 20:35:00 -03:00
parent b8c8308d77
commit 571fa7f4e7

View File

@ -10,7 +10,7 @@ const cp = require('child_process');
setVersion('contracts/package.json');
setVersion('ethpm.json');
function setVersion(file) {
function setVersion (file) {
const json = JSON.parse(fs.readFileSync(file));
json.version = process.env.npm_package_version;
fs.writeFileSync(file, JSON.stringify(json, null, 2) + '\n');