add jenkins snippet
This commit is contained in:
7
snippets/jenkins/template/node/jenkins.js
Normal file
7
snippets/jenkins/template/node/jenkins.js
Normal file
@@ -0,0 +1,7 @@
|
||||
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));
|
Reference in New Issue
Block a user