Interactive interface for browsing global, full-resolution satellite imagery
fix problem where directory creation would fail if it already exists
Mike McGann0ad60b59a1db
diff --git a/tasks/buildJS.js b/tasks/buildJS.jsindex 27be04165..013ee9b66 100644--- a/tasks/buildJS.js+++ b/tasks/buildJS.js@@ -16,6 +16,8 @@ const outputPath = outputDir + (isTest ? 'wv-test-bundle.js' : 'wv.js');// Log what we're building, and in what environmentconsole.log('Building ' + outputPath + ' for ' + process.env.NODE_ENV);if (!fs.existsSync(outputDir)) {+ // Bamboo was getting caught up here saying the directory already exists.+ // Just log an error if that happens and continue.try {fs.mkdirSync(outputDir);} catch (err) {