10 lines
214 B
JavaScript
10 lines
214 B
JavaScript
'use strict';
|
|
|
|
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));
|