Skip to content

Commit

Permalink
Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezze committed Apr 16, 2018
1 parent 2a92436 commit 8a7c32e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions commands/add-copyright.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import fs from 'fs';
import glob from 'glob'; // eslint-disable-line
import prependFile from 'prepend-file'; // eslint-disable-line

const lines = fs.readFileSync('copyright.txt', {
import packageJson from '../package.json';

const lines = fs.readFileSync('copyright-template.txt', {
encoding: 'utf8',
}).split('\n');
}).replace('{version}', packageJson.version).split('\n');

const args = process.argv.slice(2);
const pattern = args[0];
Expand Down
2 changes: 1 addition & 1 deletion copyright.txt → copyright-template.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
satellite-js v2.0.0
satellite-js v{version}
(c) 2013 Shashwat Kandadai and UCSC
https://github.com/shashwatak/satellite-js
License: MIT
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "satellite.js",
"version": "2.0.1",
"version": "2.0.2",
"description": "SGP4/SDP4 calculation library",
"main": "lib/index.js",
"jsnext:main": "dist/satellite.es.js",
Expand Down

0 comments on commit 8a7c32e

Please sign in to comment.