Skip to content

Commit

Permalink
update to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Dec 6, 2023
1 parent 1b87f14 commit 37578fb
Show file tree
Hide file tree
Showing 7 changed files with 8,709 additions and 8,446 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
*.log
.eslintcache
.eslintcache
transforms/**/*.js
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ transformation of

- clone the repo
- change into the repo directory
- `yarn`
- `pnpm`

### Running Tests

- `yarn test`
- `pnpm test`

### Update Documentation

- `yarn update-docs`
- `pnpm update-docs`
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Once the prep work is completed, the actual release is straight forward:
- First, ensure that you have installed your projects dependencies:

```sh
yarn install
pnpm install
```

- Second, ensure that you have obtained a
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
],
"scripts": {
"release": "release-it",
"prepublishOnly": "yarn build",
"postpublish": "yarn clean",
"prepublishOnly": "pnpm build",
"postpublish": "pnpm clean",
"build": "tsc",
"clean": "tsc --build --clean && git checkout test/fixtures",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
Expand All @@ -42,7 +42,7 @@
"lint:prettier": "prettier --check .",
"lint:prettier:fix": "prettier --write .",
"lint:ts": "tsc --noEmit",
"test": "yarn build && codemod-cli test && node ./test/run-test.js && yarn clean",
"test": "pnpm build && codemod-cli test && node ./test/run-test.js && pnpm clean",
"update-docs": "codemod-cli update-docs"
},
"dependencies": {
Expand All @@ -63,10 +63,12 @@
"@jest/globals": "^29.5.0",
"@release-it-plugins/lerna-changelog": "^5.0.0",
"@tsconfig/node12": "^1.0.11",
"@types/babel__core": "^7.20.5",
"@types/glob": "^8.1.0",
"@types/jscodeshift": "^0.11.6",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"ast-types": "^0.14.2",
"concurrently": "^8.0.1",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -90,7 +92,7 @@
},
"release-it": {
"hooks": {
"after:bump": "yarn update-docs"
"after:bump": "pnpm update-docs"
},
"plugins": {
"@release-it-plugins/lerna-changelog": {
Expand Down
Loading

0 comments on commit 37578fb

Please sign in to comment.