Skip to content

Commit c892e02

Browse files
authored
Merge pull request #225 from bustle/migrate-to-pnpm
Migrate from yarn to pnpm
2 parents 8c9da37 + 026307f commit c892e02

9 files changed

Lines changed: 16151 additions & 13285 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,18 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
2223
- name: Install Node
2324
uses: actions/setup-node@v4
2425
with:
2526
node-version: 20.x
26-
cache: yarn
27+
cache: pnpm
2728
- name: Install Dependencies
28-
run: yarn install --frozen-lockfile
29+
run: pnpm install --frozen-lockfile
2930
- name: Lint
30-
run: yarn lint
31+
run: pnpm lint
3132
- name: Run Tests
32-
run: yarn test:ember
33+
run: pnpm test:ember
3334

3435
floating:
3536
name: "Floating Dependencies"
@@ -38,14 +39,15 @@ jobs:
3839

3940
steps:
4041
- uses: actions/checkout@v4
42+
- uses: pnpm/action-setup@v4
4143
- uses: actions/setup-node@v4
4244
with:
4345
node-version: 20.x
44-
cache: yarn
46+
cache: pnpm
4547
- name: Install Dependencies
46-
run: yarn install --no-lockfile
48+
run: pnpm install --no-lockfile
4749
- name: Run Tests
48-
run: yarn test:ember
50+
run: pnpm test:ember
4951

5052
try-scenarios:
5153
name: ${{ matrix.try-scenario }}
@@ -65,12 +67,13 @@ jobs:
6567

6668
steps:
6769
- uses: actions/checkout@v4
70+
- uses: pnpm/action-setup@v4
6871
- name: Install Node
6972
uses: actions/setup-node@v4
7073
with:
7174
node-version: 20.x
72-
cache: yarn
75+
cache: pnpm
7376
- name: Install Dependencies
74-
run: yarn install --frozen-lockfile
77+
run: pnpm install --frozen-lockfile
7578
- name: Run Tests
7679
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
* `git clone <repository-url>`
66
* `cd ember-mobiledoc-editor`
7-
* `yarn install`
7+
* `pnpm install`
88

99
## Linting
1010

11-
* `yarn lint`
12-
* `yarn lint:fix`
11+
* `pnpm lint`
12+
* `pnpm lint:fix`
1313

1414
## Running tests
1515

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ This README outlines the details of collaborating on this Ember addon.
417417

418418
* `git clone <repository-url>` this repository
419419
* `cd ember-mobiledoc-editor`
420-
* `yarn install`
420+
* `pnpm install`
421421

422422
Run the development server:
423423

@@ -426,7 +426,7 @@ Run the development server:
426426

427427
## Running Tests
428428

429-
* `yarn test` (Runs `ember try:each` to test your addon against multiple Ember versions)
429+
* `pnpm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
430430
* `ember test`
431431
* `ember test --server`
432432

RELEASE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Once the prep work is completed, the actual release is straight forward:
3737
# using https://volta.sh
3838
volta install release-it
3939
40-
# using Yarn
41-
yarn global add release-it
40+
# using pnpm
41+
pnpm add --global release-it
4242
4343
# using npm
4444
npm install --global release-it
@@ -47,7 +47,7 @@ npm install --global release-it
4747
* Second, ensure that you have installed your projects dependencies:
4848

4949
```
50-
yarn install
50+
pnpm install
5151
```
5252

5353
* And last (but not least 😁) do your release. It requires a

config/ember-try.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');
55

66
module.exports = async function () {
77
return {
8-
useYarn: true,
8+
usePnpm: true,
99
scenarios: [
1010
{
1111
name: 'ember-lts-3.24',

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"ember-source": "~3.28.8",
6767
"ember-source-channel-url": "^3.0.0",
6868
"ember-template-lint": "^3.15.0",
69-
"ember-try": "^1.4.0",
69+
"ember-try": "^3.0.0",
7070
"eslint": "^7.32.0",
7171
"eslint-config-prettier": "^8.3.0",
7272
"eslint-plugin-ember": "^10.5.8",
@@ -111,6 +111,7 @@
111111
},
112112
"volta": {
113113
"node": "20.19.1",
114-
"yarn": "1.22.19"
115-
}
114+
"pnpm": "10.12.1"
115+
},
116+
"packageManager": "pnpm@10.12.1"
116117
}

0 commit comments

Comments
 (0)