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.
17 lines
425 B
17 lines
425 B
7 years ago
|
#!/usr/bin/env node
|
||
|
|
||
|
// Synchronizes ethpm.json version number with package.json.
|
||
6 years ago
|
// This is run automatically when npm version is run.
|
||
7 years ago
|
|
||
|
const fs = require('fs');
|
||
|
const cp = require('child_process');
|
||
|
|
||
6 years ago
|
const pkg = require('../../package.json');
|
||
|
const ethpm = require('../../ethpm.json');
|
||
7 years ago
|
|
||
|
ethpm.version = pkg.version;
|
||
|
|
||
|
fs.writeFileSync('ethpm.json', JSON.stringify(ethpm, null, 2) + '\n');
|
||
|
|
||
|
cp.execSync('git add ethpm.json');
|