8 lines
199 B
JavaScript
8 lines
199 B
JavaScript
const fs = require ('fs');
|
|
|
|
const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8'));
|
|
[
|
|
,, pkg.version
|
|
] = process.argv;
|
|
fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
|