Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(yarn): upgrade to yarn 4.6.0 #293

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn --frozen-lockfile
run: yarn install --immutable
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn --frozen-lockfile
run: yarn install --immutable
- name: Run tests
run: yarn test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ lib
.idea

.vercel
/.yarn/install-state.gz
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM node:20-slim
RUN apt-get update && apt-get install -y git
WORKDIR /usr/src/app
COPY package.json yarn.lock tsconfig.json ./
RUN yarn install --production
# Workaround for error TS7016: Could not find a declaration file for module 'js-yaml'
RUN yarn add --dev @types/js-yaml
ENV NEXT_TELEMETRY_DISABLED=1 NODE_ENV=production YARN_VERSION=4.6.0
RUN corepack enable && corepack prepare yarn@${YARN_VERSION}
COPY package.json yarn.lock .yarnrc.yml tsconfig.json ./
RUN yarn install --immutable
RUN yarn cache clean
ENV NODE_ENV="production"
COPY . .
RUN yarn build
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD ["node", "./lib/healthcheck.js"]
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@
},
"engines": {
"node": ">= 18"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion src/log/log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Transform} from "readable-stream";
import prettyFactory from "pino-pretty"
import {prettyFactory} from "pino-pretty"

const LEVEL_MAP = new Map<number, string>([
[10, "trace"],
Expand Down
22,104 changes: 12,685 additions & 9,419 deletions yarn.lock

Large diffs are not rendered by default.