Skip to content

Commit ee92faf

Browse files
authored
Yarn to pnpm (#1642)
* Yarn to pnpm * Remove yarn lock
1 parent 3aa44bd commit ee92faf

10 files changed

Lines changed: 5755 additions & 7396 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,17 @@ 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
1418
- name: Install Node.js
1519
uses: actions/setup-node@v6
1620
with:
1721
node-version: '24'
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
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

.gitignore

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

86
# Runtime data
97
pids
@@ -51,9 +49,6 @@ typings/
5149
# Output of 'npm pack'
5250
*.tgz
5351

54-
# Yarn Integrity file
55-
.yarn-integrity
56-
5752
# dotenv environment variables file
5853
.env
5954

@@ -66,13 +61,3 @@ nbproject
6661
!jest-mongodb-config.js
6762
!jest.config.js
6863
!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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"eslint.packageManager": "yarn",
32
"eslint.validate": [
43
"javascript",
54
"javascriptreact",
6-
{ "language": "typescript", "autoFix": true },
7-
{ "language": "typescriptreact", "autoFix": true }
5+
"typescript",
6+
"typescriptreact"
87
]
98
}

.yarn/releases/yarn-4.13.0.cjs

Lines changed: 0 additions & 940 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

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

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

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

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

32-
#### `yarn run start:prod`
32+
#### `pnpm 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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"engines": {
6-
"node": "24",
7-
"yarn": ">=1.22.10"
6+
"node": "24"
87
},
98
"scripts": {
109
"dev": "DEBUG=\"*universalmediaserver-api:server\" nodemon",
@@ -53,6 +52,5 @@
5352
"stoppable": "1.1.0",
5453
"ts-jest": "29.4.11",
5554
"typescript-eslint": "^8.6.0"
56-
},
57-
"packageManager": "yarn@4.13.0"
55+
}
5856
}

0 commit comments

Comments
 (0)