Skip to content

Commit 8ef5def

Browse files
committed
feat: use pnpm as manager, yarn pnp is still supported
1 parent 2ec7aaf commit 8ef5def

17 files changed

+16734
-52324
lines changed

Diff for: .eslintignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
!.*.cjs
2-
.pnp.*
3-
.yarn
4-
.yarnrc.yml
52
dist
63
lib
74
CHANGELOG.md

Diff for: .github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ patreon: 1stG
99
custom:
1010
- https://opencollective.com/1stG
1111
- https://opencollective.com/rxts
12+
- https://afdian.net/@JounQin

Diff for: .github/workflows/ci.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,22 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222

23-
- uses: actions/setup-node@v3
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v2
25+
with:
26+
version: latest
27+
28+
- name: Setup Node.js ${{ matrix.node }}
29+
uses: actions/setup-node@v3
2430
with:
2531
node-version: ${{ matrix.node }}
26-
cache: yarn
32+
cache: pnpm
2733

2834
- name: Install Dependencies
29-
run: yarn --frozen-lockfile
35+
run: pnpm i --frozen-lockfile
3036

3137
- name: Build, Lint and Test
32-
run: yarn run-s build lint test
33-
# typecov
38+
run: pnpm run-s build lint test typecov
3439
env:
3540
EFF_NO_LINK_RULES: true
3641
PARSER_NO_WATCH: true

Diff for: .github/workflows/pkg-size.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v3
1616

17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v2
19+
with:
20+
version: latest
21+
1722
- name: Setup Node.js
1823
uses: actions/setup-node@v3
1924
with:
@@ -22,6 +27,6 @@ jobs:
2227
- name: Package Size Report
2328
uses: pkg-size/action@v1
2429
with:
25-
build-command: yarn build
30+
build-command: pnpm build
2631
env:
2732
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/release.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ jobs:
1616
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v2
21+
with:
22+
version: latest
23+
1924
- name: Setup Node.js 16
2025
uses: actions/setup-node@v3
2126
with:
2227
node-version: 16
23-
cache: yarn
28+
cache: pnpm
2429

2530
- name: Install Dependencies
26-
run: yarn --immutable
27-
28-
- name: Prepare Git Hooks
29-
run: yarn prepare
31+
run: pnpm i --frozen-lockfile
3032

3133
- name: Prerelease
3234
run: yarn prerelease
@@ -35,9 +37,8 @@ jobs:
3537
id: changesets
3638
uses: changesets/action@v1
3739
with:
38-
version: yarn changeset version
3940
# This expects you to have a script called release which does a build for your packages and calls changeset publish
40-
publish: yarn release
41+
publish: pnpm release
4142
commit: 'chore: release eslint-import-resolver-typescript'
4243
title: 'chore: release eslint-import-resolver-typescript'
4344
env:

Diff for: .gitignore

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1+
.*cache
12
.type-coverage
23
lib
34
node_modules
45
*.log
5-
.eslintcache
6-
!.pnp.*
7-
.yarn
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions

Diff for: .npmrc

+12-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
package-lock=false
1+
; https://github.com/pkg-size/action/pull/45
2+
; package-lock=false
3+
public-hoist-pattern[]=@1stg/*
4+
public-hoist-pattern[]=@pkgr/*
5+
public-hoist-pattern[]=@commitlint/*
6+
public-hoist-pattern[]=*eslint*
7+
public-hoist-pattern[]=npm-run-all
8+
public-hoist-pattern[]=lint-staged
9+
public-hoist-pattern[]=json5
10+
public-hoist-pattern[]=*prettier*
11+
public-hoist-pattern[]=simple-git-hooks
12+
strict-peer-dependencies=false

0 commit comments

Comments
 (0)