Skip to content

Commit

Permalink
chore: switch from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
tippfehlr committed Mar 11, 2024
1 parent 59160f5 commit bf6904b
Show file tree
Hide file tree
Showing 8 changed files with 1,707 additions and 5,042 deletions.
11 changes: 0 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@
*.log
node_modules/
out/
activityRolesList.txt
export.json
scripts/
justfile
docker-compose.yaml

# Material for MkDocs
docs/.cache

# yarn v2+:
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

550 changes: 0 additions & 550 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.0.cjs

This file was deleted.

Empty file removed .yarn/versions/6b55e8c5.yml
Empty file.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ RUN jq '{ dependencies, devDependencies }' < /tmp/package.json > /tmp/deps.json
FROM --platform=$BUILDPLATFORM node:current-alpine AS build
WORKDIR /activity-roles/
RUN apk add python3 make g++
RUN yarn global add typescript
COPY tsconfig.json yarn.lock .
RUN npm i -g pnpm
COPY tsconfig.json pnpm-lock.yaml .
COPY --from=deps /tmp/deps.json ./package.json
RUN yarn install
RUN pnpm i
COPY src src
RUN tsc --outDir out/
RUN ./node_modules/typescript/bin/tsc --outDir out/

FROM node:current-alpine AS release
WORKDIR /activity-roles/
RUN apk add python3 make g++
RUN npm i -g pnpm
COPY img/discord-header.png img/discord-header.png
COPY locales locales
COPY yarn.lock .
COPY pnpm-lock.yaml .
COPY --from=deps /tmp/deps.json ./package.json
RUN yarn install --prod
RUN pnpm i -P
COPY --from=build /activity-roles/out src

VOLUME ["/activity-roles/db"]
Expand Down
Loading

0 comments on commit bf6904b

Please sign in to comment.