From 828cd347fdbbf0cda4f9b84d2f2a49336d5f9cb9 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Tue, 27 Jul 2021 11:31:49 +0200 Subject: [PATCH] Move CLI script to .sh file --- .github/workflows/test.yml | 2 ++ lodestar | 8 +++++++- package.json | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) mode change 120000 => 100755 lodestar diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86a083a8031a..ffaa0057ab17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,8 @@ jobs: run: yarn build if: steps.cache-deps.outputs.cache-hit == 'true' # + - name: Test root binary exists + run: ./lodestar --version - name: Check Types run: yarn run check-types - name: Lint diff --git a/lodestar b/lodestar deleted file mode 120000 index 316733e7c088..000000000000 --- a/lodestar +++ /dev/null @@ -1 +0,0 @@ -packages/cli/bin/lodestar \ No newline at end of file diff --git a/lodestar b/lodestar new file mode 100755 index 000000000000..a43d1dff1a3f --- /dev/null +++ b/lodestar @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Convenience script to run the lodestar binary from built source +# +# ./lodestar.sh beacon --network prater + +node --trace-deprecation --max-old-space-size=6144 ./packages/cli/bin/lodestar "$@" \ No newline at end of file diff --git a/package.json b/package.json index 39985dc18ddb..02a0a06b9d21 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "test:spec-main": "lerna run test:spec-main --no-bail", "benchmark": "node --max-old-space-size=4096 -r ts-node/register -r ./packages/lodestar/test/setup.ts ./node_modules/.bin/benchmark 'packages/*/test/perf/**/*.test.ts'", "benchmark:local": "yarn benchmark --local", - "cli": "node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar", "publish:release": "lerna publish from-package --yes --no-verify-access", "release": "lerna version --no-push --sign-git-commit", "postrelease": "git tag -d $(git describe --abbrev=0)",