Skip to content

Commit 09c37f2

Browse files
committed
update to pnpm
1 parent 1b87f14 commit 09c37f2

File tree

8 files changed

+8713
-8449
lines changed

8 files changed

+8713
-8449
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
7-
branches: [master]
7+
branches: [main]
88

99
jobs:
1010
build:
@@ -15,11 +15,15 @@ jobs:
1515
node-version: [16.x, 18.x, 20.x]
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
18+
- uses: actions/checkout@v4
19+
- uses: pnpm/action-setup@v2
20+
name: Install pnpm
21+
with:
22+
version: 8
23+
- uses: actions/setup-node@v4
2024
with:
2125
node-version: ${{ matrix.node-version }}
22-
cache: yarn
23-
- run: yarn install --frozen-lockfile
24-
- run: yarn lint
25-
- run: yarn test
26+
cache: pnpm
27+
- run: pnpm install --frozen-lockfile
28+
- run: pnpm lint
29+
- run: pnpm test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
*.log
3-
.eslintcache
3+
.eslintcache
4+
transforms/**/*.js

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ node_modules
44
**/__testfixtures__/**
55
**/fixtures/**
66
CHANGELOG.md
7-
README.md
7+
README.md
8+
pnpm-lock.yaml

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ transformation of
103103

104104
- clone the repo
105105
- change into the repo directory
106-
- `yarn`
106+
- `pnpm`
107107

108108
### Running Tests
109109

110-
- `yarn test`
110+
- `pnpm test`
111111

112112
### Update Documentation
113113

114-
- `yarn update-docs`
114+
- `pnpm update-docs`

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Once the prep work is completed, the actual release is straight forward:
3131
- First, ensure that you have installed your projects dependencies:
3232

3333
```sh
34-
yarn install
34+
pnpm install
3535
```
3636

3737
- Second, ensure that you have obtained a

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
],
3232
"scripts": {
3333
"release": "release-it",
34-
"prepublishOnly": "yarn build",
35-
"postpublish": "yarn clean",
34+
"prepublishOnly": "pnpm build",
35+
"postpublish": "pnpm clean",
3636
"build": "tsc",
3737
"clean": "tsc --build --clean && git checkout test/fixtures",
3838
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
@@ -42,7 +42,7 @@
4242
"lint:prettier": "prettier --check .",
4343
"lint:prettier:fix": "prettier --write .",
4444
"lint:ts": "tsc --noEmit",
45-
"test": "yarn build && codemod-cli test && node ./test/run-test.js && yarn clean",
45+
"test": "pnpm build && codemod-cli test && node ./test/run-test.js && pnpm clean",
4646
"update-docs": "codemod-cli update-docs"
4747
},
4848
"dependencies": {
@@ -63,10 +63,12 @@
6363
"@jest/globals": "^29.5.0",
6464
"@release-it-plugins/lerna-changelog": "^5.0.0",
6565
"@tsconfig/node12": "^1.0.11",
66+
"@types/babel__core": "^7.20.5",
6667
"@types/glob": "^8.1.0",
6768
"@types/jscodeshift": "^0.11.6",
6869
"@typescript-eslint/eslint-plugin": "^5.59.1",
6970
"@typescript-eslint/parser": "^5.59.1",
71+
"ast-types": "^0.14.2",
7072
"concurrently": "^8.0.1",
7173
"eslint": "^8.39.0",
7274
"eslint-config-prettier": "^8.8.0",
@@ -90,7 +92,7 @@
9092
},
9193
"release-it": {
9294
"hooks": {
93-
"after:bump": "yarn update-docs"
95+
"after:bump": "pnpm update-docs"
9496
},
9597
"plugins": {
9698
"@release-it-plugins/lerna-changelog": {

0 commit comments

Comments
 (0)