From bf64ce55d3a83a14d4cc47e8fbf889fd978a4f82 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:10:50 +0100 Subject: Add dynamic version of pnpm and npm (#37) --- docker/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docker') diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 7b66a32..4178d97 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -17,8 +17,6 @@ Brought to you by ferdium.org EOL # Update recipes from official git repository -npm i -gf pnpm@7.1.2 - if [ ! -d "/app/recipes/.git" ]; # When we mount an existing volume (ferdium-recipes-vol:/app/recipes) if this is only /app/recipes it is always true then echo '**** Generating recipes for first run ****' @@ -35,6 +33,8 @@ fi cd recipes git config --global --add safe.directory /app/recipes +EXPECTED_PNPM_VERSION=$(node -p 'require("./package.json").engines.pnpm') +npm i -gf pnpm@$EXPECTED_PNPM_VERSION pnpm i pnpm package cd .. -- cgit v1.2.3-54-g00ecf