From b345523e4106da2a0f143cabc3599fefabd26183 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 10 May 2022 13:18:38 -0500 Subject: [PATCH] Add build-stork-index node script --- package.json | 1 + scripts/build-stork-index.js | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 scripts/build-stork-index.js diff --git a/package.json b/package.json index b4f40ff..9d19b6a 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "build-stork": "node -r esm -r tsconfig-paths/register build-stork.js", "build-stork-index": "./$npm_package_config_stork_executable build --input $npm_package_config_stork_toml --output $npm_package_config_stork_binary", "setup-stork": "run-s build-stork build-stork-index", + "build-stork-index-js": "node -r esm -r tsconfig-paths/register scripts/build-stork-index.js", "download-stork-toml": "node -r esm -r tsconfig-paths/register scripts/download-stork-toml.js", "download-stork-executable": "node -r esm -r tsconfig-paths/register scripts/download-stork-executable.js", "stork-netlify": "chmod +x scripts/stork-netlify.sh && ./scripts/stork-netlify.sh", diff --git a/scripts/build-stork-index.js b/scripts/build-stork-index.js new file mode 100644 index 0000000..047ab80 --- /dev/null +++ b/scripts/build-stork-index.js @@ -0,0 +1,12 @@ +import { + downloadStorkExecutable, + buildIndex +} from '~/helpers/stork/executable.js' + +;(async () => { + await downloadStorkExecutable() + + await buildIndex() + + process.exit() +})()