2020-01-18 21:14:40 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) Sapphirecode - All Rights Reserved
|
|
|
|
* This file is part of snippeteer which is released under BSD-3-Clause.
|
|
|
|
* See file 'LICENSE' for full license details.
|
|
|
|
* Created by Timo Hocker <timo@scode.ovh>, January 2020
|
|
|
|
*/
|
|
|
|
|
2020-01-30 10:57:34 +01:00
|
|
|
'use strict';
|
|
|
|
|
2020-01-15 11:50:44 +01:00
|
|
|
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));
|