Skip to content

Commit a2c8f34

Browse files
authored
chore(sfu): move from npm to yarn (#35)
1 parent e50c222 commit a2c8f34

8 files changed

Lines changed: 1386 additions & 2475 deletions

File tree

.github/copilot-instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,8 @@ function cleanupParticipant(socketId: string, meetingId: string) {
824824
825825
### Running the Server
826826
827-
- Development: `npm run dev` or `npm run dev:watch` (with nodemon)
828-
- Production: `npm run build && npm start`
827+
- Development: `yarn dev` or `yarn dev:watch` (with nodemon)
828+
- Production: `yarn build && yarn start`
829829
- Assume SFU server is already running during development
830830
831831
### Logging
@@ -856,8 +856,8 @@ function cleanupParticipant(socketId: string, meetingId: string) {
856856
## Code Quality
857857
858858
- Use Biome for linting and formatting (both frontend and SFU server)
859-
- Run `yarn lint` or `npm run lint` to check code
860-
- Run `yarn format` or `npm run format` to fix formatting
859+
- Run `yarn lint` to check code
860+
- Run `yarn format` to fix formatting
861861
- Ignore newline errors in all files
862862
- Write clean, readable code that follows project conventions
863863

.github/workflows/linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
- uses: actions/setup-node@v4
2727
with:
2828
node-version: 24
29-
cache: "npm"
30-
cache-dependency-path: "**/package-lock.json"
29+
cache: "yarn"
30+
cache-dependency-path: "**/yarn.lock"
3131

3232
- name: Install SFU Server dependencies
33-
run: cd sfu-server && npm ci
33+
run: cd sfu-server && yarn install --frozen-lockfile
3434

3535
- uses: pre-commit/action@v3.0.0
3636

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repos:
5252
5353
- id: biome-check
5454
name: Biome Check (SFU Server)
55-
entry: bash -c 'cd sfu-server && npm run lint:fix'
55+
entry: bash -c 'cd sfu-server && yarn lint:fix'
5656
language: system
5757
files: "sfu-server/.*\\.(js|ts|json)$"
5858
exclude: |

sfu-server/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ COPY types /app/types
1313

1414
# Copy sfu-server source code
1515
WORKDIR /app/sfu-server
16-
COPY sfu-server/package*.json sfu-server/tsconfig.json ./
17-
RUN npm ci
16+
COPY sfu-server/package.json sfu-server/yarn.lock sfu-server/tsconfig.json ./
17+
RUN corepack enable
18+
RUN corepack prepare yarn@1.22.22 --activate
19+
RUN yarn install --frozen-lockfile
1820
COPY sfu-server/src ./src
19-
RUN npm run build
21+
RUN yarn build
2022

2123
# --- Runtime stage (minimal) ---
2224
FROM node:${NODE_VERSION} AS runtime

0 commit comments

Comments
 (0)