Skip to content

Commit d3d9bf9

Browse files
feat: Switch to pnpm (#39)
Co-authored-by: Timo Kössler <info@timokoessler.de>
1 parent 170837a commit d3d9bf9

8 files changed

Lines changed: 5625 additions & 8336 deletions

File tree

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
.github
4+
.vscode

.github/workflows/quality.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@ jobs:
1414
- name: Checkout repository ⬇️
1515
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

17+
- name: Set up pnpm
18+
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6
19+
1720
- name: Use Node.js 25.x ⚙️
1821
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1922
with:
2023
node-version: 25.x
21-
cache: "npm"
22-
23-
- name: Setup Aikido Safe Chain
24-
run: |
25-
npm i -g @aikidosec/safe-chain
26-
safe-chain setup-ci
24+
cache: "pnpm"
2725

2826
- name: Install dependencies 📦
29-
run: npm ci --safe-chain-skip-minimum-package-age
27+
run: pnpm install --frozen-lockfile
3028

3129
- name: Check code quality 🔍
3230
run: node --run lint

Dockerfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1+
FROM ghcr.io/pnpm/pnpm:11.2.1 AS install-deps
2+
3+
WORKDIR /app
4+
COPY package.json ./
5+
COPY pnpm-lock.yaml ./
6+
COPY pnpm-workspace.yaml ./
7+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
8+
pnpm i --frozen-lockfile --store-dir /pnpm/store
9+
110
FROM node:26-alpine AS builder
211

312
WORKDIR /app
413

514
RUN apk add --no-cache git
615

7-
COPY --exclude=node_modules . .
8-
RUN npm ci
16+
COPY . .
17+
COPY --from=install-deps /app/node_modules ./node_modules
918

10-
RUN npm run build
19+
RUN node --run build
1120

1221
FROM nginx:1-alpine
1322

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ This website is built with [Fumadocs](https://www.fumadocs.dev/) and [Tanstack S
1616
1. Install the dependencies:
1717

1818
```bash
19-
npm install
19+
pnpm install
2020
```
2121

2222
2. Start the development server:
2323

2424
```bash
25-
npm run dev
25+
pnpm run dev
2626
```
2727

2828
### Structure

0 commit comments

Comments
 (0)