Skip to content

Commit b5c2406

Browse files
committed
Revert "Yarn to pnpm (#1642)"
This reverts commit ee92faf.
1 parent ee92faf commit b5c2406

10 files changed

Lines changed: 7396 additions & 5755 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v6
14-
- name: Install pnpm
15-
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
16-
with:
17-
version: 11
1814
- name: Install Node.js
1915
uses: actions/setup-node@v6
2016
with:
2117
node-version: '24'
22-
cache: "pnpm"
23-
- name: Install dependencies
24-
run: pnpm install
25-
- run: pnpm eslint .
26-
- run: pnpm run tsc:ci
27-
- run: pnpm test
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
21+
- uses: actions/cache@v5
22+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
23+
with:
24+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
25+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-yarn-
28+
- name: Install Dependencies
29+
if: steps.cache.outputs.cache-hit != 'true'
30+
run: yarn
31+
- run: yarn eslint .
32+
- run: yarn run tsc:ci
33+
- run: yarn test

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
logs
33
*.log
44
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
57

68
# Runtime data
79
pids
@@ -49,6 +51,9 @@ typings/
4951
# Output of 'npm pack'
5052
*.tgz
5153

54+
# Yarn Integrity file
55+
.yarn-integrity
56+
5257
# dotenv environment variables file
5358
.env
5459

@@ -61,3 +66,13 @@ nbproject
6166
!jest-mongodb-config.js
6267
!jest.config.js
6368
!ecosystem.config.js
69+
70+
# yarn 3
71+
72+
.pnp.*
73+
.yarn/*
74+
!.yarn/patches
75+
!.yarn/plugins
76+
!.yarn/releases
77+
!.yarn/sdks
78+
!.yarn/versions

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2+
"eslint.packageManager": "yarn",
23
"eslint.validate": [
34
"javascript",
45
"javascriptreact",
5-
"typescript",
6-
"typescriptreact"
6+
{ "language": "typescript", "autoFix": true },
7+
{ "language": "typescriptreact", "autoFix": true }
78
]
89
}

.yarn/releases/yarn-4.13.0.cjs

Lines changed: 940 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: .yarn/releases/yarn-4.13.0.cjs

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ You can run `nvm use` and `yvm use` from the project root if you have [Node vers
1414

1515
### Commands
1616

17-
#### `pnpm watch`
18-
Watches for changes to TypeScript files and compiles them to JavaScript (use `pnpm run build` to do it manually)
17+
#### `yarn watch`
18+
Watches for changes to TypeScript files and compiles them to JavaScript (use `yarn run build` to do it manually)
1919

20-
#### `pnpm dev`
20+
#### `yarn dev`
2121
Runs the development server and restarts it when any file is changed
2222

23-
#### `pnpm dev:cron`
23+
#### `yarn dev:cron`
2424
Runs the cron job feature using ts-node
2525

26-
#### `pnpm start`
26+
#### `yarn start`
2727
Runs the server
2828

29-
#### `pnpm test`
29+
#### `yarn test`
3030
Runs the test suite
3131

32-
#### `pnpm run start:prod`
32+
#### `yarn run start:prod`
3333
Starts the API and cron job in production mode. TypeScript files are compiled in memory on application start.
3434

3535
## Logs

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.0.0",
44
"private": true,
55
"engines": {
6-
"node": "24"
6+
"node": "24",
7+
"yarn": ">=1.22.10"
78
},
89
"scripts": {
910
"dev": "DEBUG=\"*universalmediaserver-api:server\" nodemon",
@@ -52,5 +53,6 @@
5253
"stoppable": "1.1.0",
5354
"ts-jest": "29.4.11",
5455
"typescript-eslint": "^8.6.0"
55-
}
56+
},
57+
"packageManager": "yarn@4.13.0"
5658
}

0 commit comments

Comments
 (0)