diff --git a/.env.example b/.env.example index 2fc80e3..50a36d7 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ +ENABLE_EXPERIMENTAL_COREPACK=1 PORT=3000 diff --git a/.env.test b/.env.test index 4a2c052..1ed99c7 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,3 @@ +ENABLE_EXPERIMENTAL_COREPACK=1 NODE_ENV=test PORT=0 diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 9a6cb2b..096d453 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -19,8 +19,6 @@ runs: run: echo "//registry.npmjs.org/:_authToken=${{ inputs.npm_token }}" > ~/.npmrc - name: Install pnpm 📦 uses: pnpm/action-setup@v4 - with: - version: 9 - name: Cache Dependencies ⌛️ uses: actions/cache@v4 id: cache-node-modules diff --git a/Dockerfile b/Dockerfile index e318d22..9701cfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ FROM base AS dev ENV NODE_ENV=development ENV CI=true -RUN npm install -g pnpm@9 +RUN npm install -g pnpm@9.14.2 COPY package.json pnpm-lock.yaml ./ @@ -29,7 +29,7 @@ FROM base AS build ENV CI=true -RUN apk update && apk add --no-cache dumb-init=1.2.5-r3 && npm install -g pnpm@9 +RUN apk update && apk add --no-cache dumb-init=1.2.5-r3 && npm install -g pnpm@9.14.2 COPY package.json pnpm-lock.yaml ./ RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ".npmrc" && \ diff --git a/README.md b/README.md index 391d7ca..b042bf3 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ cp .env.example .env Now, we will need to install `pnpm` globally, you can do it running: ```bash -npm install -g pnpm@9 +npm install -g pnpm@9.14.2 ``` The project is fully dockerized 🐳, if we want to start the app in **development mode**, we just need to run: diff --git a/package.json b/package.json index c4a4712..800ae65 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "node": ">=22.x", "pnpm": ">=9.x" }, + "packageManager": "pnpm@9.14.2", "main": "dist/main.js", "scripts": { "build": "node --run validate-typescript && node --run build:clean && node --run generate-dist",