Skip to content

Commit a015a19

Browse files
committed
feat: use pnpm as manager, yarn pnp is still supported
1 parent bb74fb4 commit a015a19

File tree

17 files changed

+16734
-52324
lines changed

17 files changed

+16734
-52324
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
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

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
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

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
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

.github/workflows/pkg-size.yml

Lines changed: 6 additions & 1 deletion
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 }}

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,26 @@ 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: Create Release Pull Request or Publish to npm
3234
id: changesets
3335
uses: changesets/action@v1
3436
with:
35-
version: yarn changeset version
3637
# This expects you to have a script called release which does a build for your packages and calls changeset publish
37-
publish: yarn release
38+
publish: pnpm release
3839
commit: 'chore: release eslint-import-resolver-typescript'
3940
title: 'chore: release eslint-import-resolver-typescript'
4041
env:

.gitignore

Lines changed: 1 addition & 7 deletions
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

.npmrc

Lines changed: 12 additions & 1 deletion
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)