From 97707c5b72d10f8cd92b9b980538b3b0e4137150 Mon Sep 17 00:00:00 2001 From: Hans Bergren Date: Wed, 3 Aug 2022 10:10:00 -0700 Subject: [PATCH] Add pnpm support --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 346d423..8b8b904 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -120,8 +120,12 @@ install_deps() echo "[-] Installing dependencies from yarn.lock" npm install -g yarn yarn install --frozen-lockfile + elif [[ -f pnpm-lock.yaml ]]; then + echo "[-] Installing dependencies from pnpm-lock.yaml" + npm install -g pnpm + pnpm install --frozen-lockfile elif [[ -f package.json ]]; then - echo "[-] Did not detect a package-lock.json or yarn.lock in $TARGET, consider locking your dependencies!" + echo "[-] Did not detect a package-lock.json, yarn.lock, or pnpm-lock.yaml in $TARGET, consider locking your dependencies!" echo "[-] Proceeding with 'npm i' to install dependencies" npm i else