Interactive interface for browsing global, full-resolution satellite imagery
Make default options check more robust
Jo Sprague1db647ea77b4
diff --git a/Gruntfile.js b/Gruntfile.jsindex dd61d2231..bd556ed1d 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -43,9 +43,9 @@ module.exports = function(grunt) {var pkg = require('./package.json');var env = grunt.option('env') || 'release';- var hasOptionsDirectory = fs.existsSync('options');- var optionsPath = hasOptionsDirectory ? 'options' : 'node_modules/worldview-options-eosdis';- var options = hasOptionsDirectory ? grunt.file.readJSON('options/package.json') : grunt.file.readJSON('node_modules/worldview-options-eosdis/package.json');+ var hasCustomOptions = fs.existsSync('options') && fs.existsSync('options/package.json');+ var optionsPath = hasCustomOptions ? 'options' : 'node_modules/worldview-options-eosdis';+ var options = hasCustomOptions ? 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// orderdiff --git a/package-lock.json b/package-lock.jsonindex ae716634e..3eed67ff3 100644--- a/package-lock.json+++ b/package-lock.json@@ -12062,7 +12062,7 @@}},"worldview-options-eosdis": {- "version": "github:nasa-gibs/worldview-options-eosdis#790a7104bf06734bf27ef90a481f995623e631c8"+ "version": "github:nasa-gibs/worldview-options-eosdis#3eee1a8b6a0e830a7d05b0a8a63f1a300cf5efd2"},"wrappy": {"version": "1.0.2",diff --git a/package.json b/package.jsonindex 764587c73..153aac431 100644--- a/package.json+++ b/package.json@@ -82,6 +82,6 @@"react": "15.3.1","react-dom": "15.3.1","worldview-components": "^1.5.1",- "worldview-options-eosdis": "nasa-gibs/worldview-options-eosdis#v2.1.2"+ "worldview-options-eosdis": "nasa-gibs/worldview-options-eosdis#v2.3.0"}}