From 41994a48b905efa291d1072bc64026a2f3a2dc77 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Sun, 11 Nov 2018 10:53:19 -0500 Subject: [PATCH] feat(download): Add download binary This is required for consistency with other importers and to allow downloading without calling `npm` Connects https://github.com/pelias/pelias/issues/745 --- bin/download | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 bin/download diff --git a/bin/download b/bin/download new file mode 100755 index 00000000..d44981e0 --- /dev/null +++ b/bin/download @@ -0,0 +1,3 @@ +#!/bin/bash + +exec node ./bin/downloadData.js diff --git a/package.json b/package.json index a660ca4e..91661c26 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "license": "MIT", "scripts": { "download_metadata": "mkdirp metadata && node bin/updateMetadata.js", - "download": "node bin/downloadData.js", + "download": "./bin/download", "countryCodes": "node bin/viewCountryCodes.js", "functional": "./bin/functional", "import": "./bin/start",