* Create autoamtic release script. * Add changelog update date script. * Improve release scripts. * Apply suggestions from code review Co-Authored-By: nventuro <nicolas.venturo@gmail.com> * Apply suggestions from code review Co-Authored-By: nventuro <nicolas.venturo@gmail.com> * Remove moment dependency.
17 lines
425 B
JavaScript
Executable File
17 lines
425 B
JavaScript
Executable File
#!/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');
|