Commit f87f8f0
Migrate frontend from Deno to Node/pnpm (#190)
* Migrate frontend from Deno to Node/npm
Removes the dual-package-manager friction that bit us repeatedly:
Trivy scans the npm lockfile while builds ran on Deno, so security
bumps via Dependabot and local builds drifted apart. Single lockfile
now (package-lock.json), tooling ecosystem expects npm anyway.
- Dockerfile: denoland/deno:2.6.5 -> node:22-alpine (multi-stage,
builder + runtime, npm ci with --omit=dev at runtime)
- CI: setup-deno -> setup-node@v5 with built-in npm cache
- package.json: add scripts (dev/build/preview/start/test:e2e*)
- Delete deno.json + deno.lock
Astro adapter (@astrojs/node) was already in deps. No source changes
needed (no Deno.* APIs in src/). Verified locally: npm ci, npm run
build, node dist/server/entry.mjs serves HTTP 200.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Switch frontend from npm to pnpm
Aligns with the pnpm stub already present in the repo. Single
package, not part of a workspace (root pnpm-workspace.yaml deleted
since it never matched apps/*; can be added back if we ever extract
shared packages).
Changes:
- apps/frontend: pnpm-lock.yaml replaces package-lock.json
- Dockerfile: corepack enable + pnpm install --frozen-lockfile
- CI: pnpm/action-setup + setup-node cache=pnpm
- Root scripts (frontend:dev/build): pnpm instead of deno task
- Docs (README, azure-deployment): commands updated
- .gitignore: drop /deno.lock (Deno path retired)
- dependabot.yml: comment updated; npm ecosystem reads pnpm-lock too
- playwright.config.cjs webServer: pnpm run dev
CMS folder unchanged. No Deno or stale npm artefacts left.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 203afa9 commit f87f8f0
15 files changed
Lines changed: 4407 additions & 9639 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | | - | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | | - | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
6 | | - | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
9 | | - | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | | - | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | | - | |
15 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
16 | 28 | | |
17 | | - | |
18 | 29 | | |
19 | 30 | | |
| 31 | + | |
20 | 32 | | |
21 | 33 | | |
22 | | - | |
| 34 | + | |
This file was deleted.
0 commit comments