Skip to content

Commit 034cda9

Browse files
committed
Move from yarn to pnpm
1 parent aaa1575 commit 034cda9

File tree

6 files changed

+2040
-1898
lines changed

6 files changed

+2040
-1898
lines changed

.github/workflows/test.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@ jobs:
99
steps:
1010
- name: Checkout the repository
1111
uses: actions/checkout@v2
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v2
14+
with:
15+
version: latest
1216
- name: Install Node.js
1317
uses: actions/setup-node@v2
1418
with:
1519
node-version: 17
16-
cache: yarn
20+
cache: pnpm
1721
- name: Install dependencies
18-
run: yarn install --frozen-lockfile
22+
run: pnpm install --frozen-lockfile
1923
- name: Run tests
20-
run: yarn test
24+
run: pnpm test
2125
env:
2226
FORCE_COLOR: 2
2327
short:
@@ -32,14 +36,18 @@ jobs:
3236
steps:
3337
- name: Checkout the repository
3438
uses: actions/checkout@v2
39+
- name: Install pnpm
40+
uses: pnpm/action-setup@v2
41+
with:
42+
version: latest
3543
- name: Install Node.js ${{ matrix.node-version }}
3644
uses: actions/setup-node@v2
3745
with:
3846
node-version: ${{ matrix.node-version }}
39-
cache: yarn
47+
cache: pnpm
4048
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
49+
run: pnpm install --frozen-lockfile
4250
- name: Run unit tests
43-
run: yarn unit
51+
run: pnpm unit
4452
env:
4553
FORCE_COLOR: 2

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules/
2-
yarn-error.log
32

43
coverage/

.npmignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
yarn-error.log
2-
yarn.lock
1+
pnpm-lock.yaml
32

43
**/*.test.ts
54
**/types.ts

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"scripts": {
1515
"unit": "tsm node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
16-
"test": "c8 yarn unit && eslint . && check-dts"
16+
"test": "c8 pnpm unit && eslint . && check-dts"
1717
},
1818
"author": "Andrey Sitnik <[email protected]>",
1919
"license": "MIT",

0 commit comments

Comments
 (0)