Skip to content

Commit f41deba

Browse files
committed
Move from Yarn to pnpm
1 parent 14bea3a commit f41deba

File tree

6 files changed

+1547
-1600
lines changed

6 files changed

+1547
-1600
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Test
22
on:
33
push:
4+
branches:
5+
- main
46
pull_request:
57
jobs:
68
full:
@@ -9,15 +11,19 @@ jobs:
911
steps:
1012
- name: Checkout the repository
1113
uses: actions/checkout@v2
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v2
16+
with:
17+
version: latest
1218
- name: Install Node.js
1319
uses: actions/setup-node@v2
1420
with:
1521
node-version: 17
16-
cache: yarn
22+
cache: pnpm
1723
- name: Install dependencies
18-
run: yarn install --frozen-lockfile
24+
run: pnpm install --frozen-lockfile --ignore-scripts
1925
- name: Run tests
20-
run: yarn test
26+
run: pnpm test
2127
env:
2228
FORCE_COLOR: 2
2329
short:
@@ -32,14 +38,18 @@ jobs:
3238
steps:
3339
- name: Checkout the repository
3440
uses: actions/checkout@v2
41+
- name: Install pnpm
42+
uses: pnpm/action-setup@v2
43+
with:
44+
version: latest
3545
- name: Install Node.js ${{ matrix.node-version }}
3646
uses: actions/setup-node@v2
3747
with:
3848
node-version: ${{ matrix.node-version }}
39-
cache: yarn
49+
cache: pnpm
4050
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
51+
run: pnpm install --frozen-lockfile --ignore-scripts
4252
- name: Run unit tests
43-
run: yarn unit
53+
run: pnpm unit
4454
env:
4555
FORCE_COLOR: 2

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules/
2-
yarn-error.log
32

43
coverage/

.npmignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
yarn-error.log
2-
yarn.lock
3-
41
test/
2+
tsconfig.json
53
coverage/
6-
.github/

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"scripts": {
1313
"unit": "uvu . '\\.test\\.(ts|js)$'",
14-
"test": "c8 yarn unit && eslint ."
14+
"test": "c8 pnpm unit && eslint ."
1515
},
1616
"author": "Andrey Sitnik <[email protected]>",
1717
"license": "MIT",
@@ -27,23 +27,23 @@
2727
"postcss": "^8.2.14"
2828
},
2929
"dependencies": {
30-
"fast-glob": "^3.2.7",
31-
"postcss-js": "^3.0.3",
30+
"fast-glob": "^3.2.11",
31+
"postcss-js": "^4.0.0",
3232
"postcss-simple-vars": "^6.0.3",
3333
"sugarss": "^4.0.1"
3434
},
3535
"devDependencies": {
36-
"@logux/eslint-config": "^46.1.0",
37-
"c8": "^7.10.0",
38-
"clean-publish": "^3.4.4",
39-
"eslint": "^8.4.0",
36+
"@logux/eslint-config": "^46.1.1",
37+
"c8": "^7.11.0",
38+
"clean-publish": "^4.0.0",
39+
"eslint": "^8.9.0",
4040
"eslint-config-standard": "^16.0.3",
41-
"eslint-plugin-import": "^2.25.3",
41+
"eslint-plugin-import": "^2.25.4",
4242
"eslint-plugin-node": "^11.1.0",
4343
"eslint-plugin-prefer-let": "^3.0.1",
44-
"eslint-plugin-promise": "^5.2.0",
45-
"postcss": "^8.4.4",
46-
"uvu": "^0.5.2"
44+
"eslint-plugin-promise": "^6.0.0",
45+
"postcss": "^8.4.7",
46+
"uvu": "^0.5.3"
4747
},
4848
"prettier": {
4949
"arrowParens": "avoid",
@@ -66,6 +66,7 @@
6666
"**/*.test.*"
6767
],
6868
"lines": 100,
69+
"reporter": "lcov",
6970
"check-coverage": true
7071
},
7172
"clean-publish": {

0 commit comments

Comments
 (0)