Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Changed config tar to append package.json info instead of unmaintained version.json file info

ZachTRice3a9c55d5c713
diff --git a/Gruntfile.js b/Gruntfile.js
index fbd277b6c..e2ac5d2a5 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -48,18 +48,7 @@ module.exports = function(grunt) {
var hasOptionsDirectory = fs.existsSync('options');
var optionsPath = hasOptionsDirectory ? 'options' : 'node_modules/worldview-options-eosdis';
-
- var options = {
- version: 0,
- release: 0
- };
-
- if (fs.existsSync("options/version.json")) {
- options = grunt.file.readJSON("options/version.json");
- }
- else if (fs.existsSync("node_modules/worldview-options-eosdis/version.json")) {
- options = grunt.file.readJSON("node_modules/worldview-options-eosdis/version.json");
- }
+ var options = hasOptionsDirectory ? grunt.file.readJSON("options/package.json") : grunt.file.readJSON("node_modules/worldview-options-eosdis/package.json");
// Lists of JavaScript and CSS files to include and in the correct
// order