Skip to content

Commit afd3a97

Browse files
committed
fix: remove deprecated @types/uuid and update Dockerfile for pnpm
@types/uuid is a deprecated stub (uuid ships its own types since v9). Under pnpm's strict resolution, the @types/uuid reference caused TS2688 because the uuid package wasn't hoisted to the top-level node_modules. Also update the Dockerfile to use pnpm instead of npm, since package-lock.json no longer exists after the pnpm migration.
1 parent 45e9372 commit afd3a97

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

Dockerfile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
1-
FROM node:24-slim as builder
1+
FROM node:24-slim AS builder
2+
3+
RUN corepack enable && corepack prepare pnpm@10.23.0 --activate
24

35
WORKDIR /app
46

5-
COPY package*.json ./
7+
COPY package.json pnpm-lock.yaml ./
68

7-
RUN npm ci
9+
RUN pnpm install --frozen-lockfile
810

911
COPY . .
1012

11-
RUN npm run build
13+
RUN pnpm run build
1214

1315
FROM node:24-slim AS final
1416

17+
RUN corepack enable && corepack prepare pnpm@10.23.0 --activate
18+
1519
WORKDIR /app
1620

1721
COPY --from=builder ./app/dist ./dist
1822

19-
COPY package*.json ./
23+
COPY package.json pnpm-lock.yaml ./
2024

21-
RUN npm ci --omit=dev
25+
RUN pnpm install --frozen-lockfile --prod
2226

2327
EXPOSE 7777
2428

2529
ENTRYPOINT ["node", "dist/main.js"]
2630

27-
CMD [ "serve", "--address", "[::]:7777", "--log-format", "json", "--log-level", "info" ]
31+
CMD [ "serve", "--address", "[::]:7777", "--log-format", "json", "--log-level", "info" ]

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"@ava/typescript": "^6.0.0",
4848
"@tsconfig/node16": "^16.1.0",
4949
"@types/jest": "^30.0.0",
50-
"@types/uuid": "^11.0.0",
5150
"@types/yargs": "^17.0.24",
5251
"@typescript-eslint/eslint-plugin": "^6.2.1",
5352
"@typescript-eslint/parser": "^6.2.1",

pnpm-lock.yaml

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)