chore: pin pnpm v9 as the package manager (#4728)

This commit is contained in:
Andrew Bastin 2025-02-06 13:06:08 +05:30 committed by GitHub
parent e967b3361d
commit 9c5ade8cc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -5,6 +5,7 @@
"author": "Hoppscotch (support@hoppscotch.io)",
"private": true,
"license": "MIT",
"packageManager": "pnpm@9.15.4",
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "husky",

View file

@ -40,7 +40,7 @@ ENV HOPP_ALLOW_RUNTIME_ENV=true
# Required by @hoppscotch/js-sandbox to build `isolated-vm`
RUN apk add python3 make g++ zlib-dev brotli-dev c-ares-dev nghttp2-dev openssl-dev icu-dev
RUN npm install -g pnpm
RUN npm install -g pnpm@9.15.4
COPY pnpm-lock.yaml .
RUN pnpm fetch
@ -67,7 +67,7 @@ RUN sh -c "curl -qL https://www.npmjs.com/install.sh | env npm_install=10.9.2 sh
# Install caddy
COPY --from=caddy_builder /tmp/caddy-build/cmd/caddy/caddy /usr/bin/caddy
RUN npm install -g pnpm
RUN npm install -g pnpm@9.15.4
COPY --from=base_builder /usr/src/app/packages/hoppscotch-backend/backend.Caddyfile /etc/caddy/backend.Caddyfile
COPY --from=backend_builder /dist/backend /dist/backend
@ -181,7 +181,7 @@ LABEL org.opencontainers.image.source="https://github.com/hoppscotch/hoppscotch"
RUN apk add tini
RUN npm install -g pnpm
RUN npm install -g pnpm@9.15.4
# Copy necessary files
# Backend files