Skip to content

Commit f155a33

Browse files
authored
Migrated to pnpm (#31)
* chore: Used pnpm as package manager * chore: Updated development dependencies --------- Co-authored-by: ijlee2 <[email protected]>
1 parent 986956d commit f155a33

File tree

8 files changed

+2680
-2575
lines changed

8 files changed

+2680
-2575
lines changed

.github/ISSUE_TEMPLATE/report-outdated-dependency.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ Before you make a new issue, please search for similar issues. It's possible tha
1414

1515
## List outdated dependencies 🔗
1616

17-
When you ran `yarn outdated`, what did you see?
18-
19-
| Package | Current version | Latest version |
20-
|---|---|---|
21-
| @babel/core | 7.17.0 | 7.18.9 |
22-
| @babel/eslint-parser | 7.17.0 | 7.18.9 |
17+
When you ran `pnpm outdated`, what did you see?
18+
19+
```sh
20+
┌────────────────────────┬─────────┬────────┐
21+
│ Package │ Current │ Latest │
22+
├────────────────────────┼─────────┼────────┤
23+
│ @sondr3/minitest (dev) │ 0.1.1 │ 0.1.2 │
24+
└────────────────────────┴─────────┴────────┘
25+
```
2326

2427

2528
## Risk analysis ⚠️

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,22 @@ jobs:
1818
- name: Check out a copy of the repo
1919
uses: actions/checkout@v3
2020

21+
- name: Set up pnpm
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: latest
25+
2126
- name: Use Node.js ${{ env.NODE_VERSION }}
2227
uses: actions/setup-node@v3
2328
with:
24-
cache: 'yarn'
29+
cache: 'pnpm'
2530
node-version: ${{ env.NODE_VERSION }}
2631

2732
- name: Install dependencies
28-
run: yarn install --frozen-lockfile
33+
run: pnpm install --frozen-lockfile
2934

3035
- name: Lint
31-
run: yarn lint
36+
run: pnpm lint
3237

3338

3439
test:
@@ -39,14 +44,19 @@ jobs:
3944
- name: Check out a copy of the repo
4045
uses: actions/checkout@v3
4146

47+
- name: Set up pnpm
48+
uses: pnpm/action-setup@v2
49+
with:
50+
version: latest
51+
4252
- name: Use Node.js ${{ env.NODE_VERSION }}
4353
uses: actions/setup-node@v3
4454
with:
45-
cache: 'yarn'
55+
cache: 'pnpm'
4656
node-version: ${{ env.NODE_VERSION }}
4757

4858
- name: Install dependencies
49-
run: yarn install --frozen-lockfile
59+
run: pnpm install --frozen-lockfile
5060

5161
- name: Test
52-
run: yarn test
62+
run: pnpm test

.gitignore

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# compiled output
2-
/dist/
3-
/tmp/
2+
dist/
3+
tmp/
44

55
# dependencies
6-
/node_modules/
6+
node_modules/
77

88
# misc
9-
/.DS_Store
10-
/.env*
11-
/.eslintcache
12-
/yarn-error.log
9+
.DS_Store
10+
.env*
11+
.eslintcache

.npmignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# compiled output
22
/dist/
3+
/tmp/
4+
5+
# dependencies
6+
/node_modules/
37

48
# misc
59
/.DS_Store
@@ -10,14 +14,11 @@
1014
/.git/
1115
/.github/
1216
/.gitignore
17+
/.pnpm-debug.log
1318
/.prettierignore
1419
/.prettierrc.cjs
1520
/codemod-test-fixture.sh
1621
/codemod-test-fixtures.sh
1722
/create-test-fixture.sh
1823
/CONTRIBUTING.md
1924
/tests/
20-
/tmp/
21-
/yarn-error.log
22-
/yarn.lock
23-
.gitkeep

CONTRIBUTING.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Here are some guidelines to help you and everyone else.
2222
cd ember-codemod-v1-to-v2
2323
```
2424

25-
1. Use `yarn` to install dependencies.
25+
1. Use [`pnpm`](https://pnpm.io/installation) to install dependencies.
2626

2727
```sh
28-
yarn install
28+
pnpm install
2929
```
3030

3131
</details>
@@ -37,13 +37,13 @@ Here are some guidelines to help you and everyone else.
3737
1. When you write code, please check that it meets the linting rules.
3838

3939
```sh
40-
yarn lint
40+
pnpm lint
4141
```
4242

4343
1. You can run `lint:fix` to automatically fix linting errors.
4444

4545
```sh
46-
yarn lint:fix
46+
pnpm lint:fix
4747
```
4848

4949
</details>
@@ -55,7 +55,7 @@ Here are some guidelines to help you and everyone else.
5555
1. When you write code, please check that all tests continue to pass.
5656

5757
```sh
58-
yarn test
58+
pnpm test
5959
```
6060

6161
</details>
@@ -70,10 +70,16 @@ Here are some guidelines to help you and everyone else.
7070
1. Create a pull request, in which you update the package version and `CHANGELOG`.
7171

7272
```sh
73-
GITHUB_AUTH=<YOUR_PERSONAL_ACCESS_TOKEN> yarn changelog
73+
GITHUB_AUTH=<YOUR_PERSONAL_ACCESS_TOKEN> pnpm changelog
7474
```
7575

76-
1. Create a tag such as `1.0.0` (the name satisfies the regular expression `^\d+\.\d+\.\d+`).
76+
1. [Create a tag](https://github.com/ijlee2/ember-codemod-v1-to-v2/releases/new) such as `1.0.0` (the name satisfies the regular expression `^\d+\.\d+\.\d+`).
77+
78+
1. Publish the package.
79+
80+
```sh
81+
pnpm publish
82+
```
7783

7884
</details>
7985

@@ -135,7 +141,7 @@ Here are some suggestions to help you start:
135141
- Report bug
136142
- Report outdated dependency
137143
138-
1. When reporting a bug, please provide details to help me understand what's going on. If possible, please use the latest version of `ember-codemod-v1-to-v2` and set up a public demo that I and (other people) can check the code.
144+
1. When reporting a bug, please provide details to help me understand what's going on. If possible, please use the latest version of `ember-codemod-v1-to-v2` and set up a public demo that I (and others) can check the code.
139145

140146
</details>
141147

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
"@babel/eslint-parser": "^7.21.8",
4646
"@codemod-utils/tests": "^0.1.0",
4747
"@sondr3/minitest": "^0.1.1",
48-
"eslint": "^8.39.0",
48+
"eslint": "^8.40.0",
4949
"eslint-config-prettier": "^8.8.0",
5050
"eslint-plugin-import": "^2.27.5",
51-
"eslint-plugin-n": "^15.7.0",
51+
"eslint-plugin-n": "^16.0.0",
5252
"eslint-plugin-prettier": "^4.2.1",
5353
"eslint-plugin-simple-import-sort": "^10.0.0",
5454
"lerna-changelog": "^2.2.0",

0 commit comments

Comments
 (0)