17 lines
		
	
	
		
			452 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			452 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /*
 | |
|  * 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
 | |
|  */
 | |
| 
 | |
| '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));
 |