From e1168e90c298f92618d7dfb87920f194dd4dee4a Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 10 May 2022 13:14:39 -0500 Subject: [PATCH] Add download-stork-executable script --- package.json | 1 + scripts/download-stork-executable.js | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 scripts/download-stork-executable.js diff --git a/package.json b/package.json index c20ad91..b4f40ff 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "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", "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", "dev-astro": "astro dev", "generate-astro": "astro build --experimental-ssr", diff --git a/scripts/download-stork-executable.js b/scripts/download-stork-executable.js new file mode 100644 index 0000000..5fb44f0 --- /dev/null +++ b/scripts/download-stork-executable.js @@ -0,0 +1,7 @@ +import { downloadStorkExecutable } from '~/helpers/stork/executable.js' + +;(async () => { + await downloadStorkExecutable() + + process.exit() +})()