Skip to content

Commit 3a3ff75

Browse files
committed
Migrate to pnpm
1 parent ba1706b commit 3a3ff75

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

frontend/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ WORKDIR /app
55

66
COPY package*.json /app/
77

8-
RUN npm install
8+
RUN corepack enable
9+
10+
RUN pnpm install
911

1012
COPY ./ /app/
1113

1214
ARG VITE_API_URL=${VITE_API_URL}
1315

14-
RUN npm run build
16+
RUN pnpm run build
1517

1618

1719
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx

frontend/Dockerfile.playwright

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ WORKDIR /app
44

55
COPY package*.json /app/
66

7-
RUN npm install
7+
RUN corepack enable
88

9-
RUN npx -y playwright install --with-deps
9+
RUN pnpm install
10+
11+
RUN pnpm dlx playwright install --with-deps
1012

1113
COPY ./ /app/
1214

frontend/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"react-dom": "^18.2.0",
2626
"react-error-boundary": "^4.0.13",
2727
"react-hook-form": "7.49.3",
28-
"react-icons": "5.0.1"
28+
"react-icons": "5.0.1",
29+
"zod": "^3.22.4"
2930
},
3031
"devDependencies": {
3132
"@biomejs/biome": "1.6.1",
@@ -40,5 +41,6 @@
4041
"dotenv": "^16.4.5",
4142
"typescript": "^5.2.2",
4243
"vite": "^5.0.13"
43-
}
44+
},
45+
"packageManager": "[email protected]"
4446
}

frontend/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default defineConfig({
8484

8585
/* Run your local dev server before starting the tests */
8686
webServer: {
87-
command: 'npm run dev',
87+
command: 'pnpm run dev',
8888
url: 'http://localhost:5173',
8989
reuseExistingServer: !process.env.CI,
9090
},

scripts/generate-client.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()
88
cd ..
99
mv openapi.json frontend/
1010
cd frontend
11-
npm run generate-client
12-
npx biome format --write ./src/client
11+
pnpm run generate-client
12+
pnpm exec biome format --write ./src/client

0 commit comments

Comments
 (0)