Add build-stork-index node script

This commit is contained in:
Sam Carlton 2022-05-10 13:18:38 -05:00
parent e1168e90c2
commit b345523e41
2 changed files with 13 additions and 0 deletions

View file

@ -35,6 +35,7 @@
"build-stork": "node -r esm -r tsconfig-paths/register build-stork.js", "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", "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", "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-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", "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", "stork-netlify": "chmod +x scripts/stork-netlify.sh && ./scripts/stork-netlify.sh",

View file

@ -0,0 +1,12 @@
import {
downloadStorkExecutable,
buildIndex
} from '~/helpers/stork/executable.js'
;(async () => {
await downloadStorkExecutable()
await buildIndex()
process.exit()
})()