Skip to content

Commit d236d21

Browse files
authored
Switch to pnpm (#82)
New lockfile and then pulled the current pnpm addon blueprint changes in to update everywhere else yarn was mentioned.
1 parent 06e5c2d commit d236d21

File tree

7 files changed

+14356
-11905
lines changed

7 files changed

+14356
-11905
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v3
25+
- uses: pnpm/action-setup@v4
26+
with:
27+
version: 9
2528
- name: Install Node
2629
uses: actions/setup-node@v3
2730
with:
2831
node-version: 18
29-
cache: yarn
32+
cache: pnpm
3033
- name: Install Dependencies
31-
run: yarn install --frozen-lockfile
34+
run: pnpm install --frozen-lockfile
3235
- name: Lint
33-
run: yarn lint
36+
run: pnpm lint
3437
- name: Run Tests
35-
run: yarn test:ember
38+
run: pnpm test:ember
3639

3740
floating:
3841
name: "Floating Dependencies"
@@ -41,14 +44,17 @@ jobs:
4144

4245
steps:
4346
- uses: actions/checkout@v3
47+
- uses: pnpm/action-setup@v4
48+
with:
49+
version: 9
4450
- uses: actions/setup-node@v3
4551
with:
4652
node-version: 18
47-
cache: yarn
53+
cache: pnpm
4854
- name: Install Dependencies
49-
run: yarn install --no-lockfile
55+
run: pnpm install --no-lockfile
5056
- name: Run Tests
51-
run: yarn test:ember
57+
run: pnpm test:ember
5258

5359
try-scenarios:
5460
name: ${{ matrix.try-scenario }}
@@ -70,12 +76,15 @@ jobs:
7076

7177
steps:
7278
- uses: actions/checkout@v3
79+
- uses: pnpm/action-setup@v4
80+
with:
81+
version: 9
7382
- name: Install Node
7483
uses: actions/setup-node@v3
7584
with:
7685
node-version: 18
77-
cache: yarn
86+
cache: pnpm
7887
- name: Install Dependencies
79-
run: yarn install --frozen-lockfile
88+
run: pnpm install --frozen-lockfile
8089
- name: Run Tests
8190
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}

CONTRIBUTING.md

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

55
- `git clone <repository-url>`
66
- `cd @ember/render-modifiers`
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

16-
- `yarn test` – Runs the test suite on the current Ember version
17-
- `yarn test:ember --server` – Runs the test suite in "watch mode"
18-
- `yarn test:ember-compatibility` – Runs the test suite against multiple Ember versions
16+
- `pnpm test` – Runs the test suite on the current Ember version
17+
- `pnpm test:ember --server` – Runs the test suite in "watch mode"
18+
- `pnpm test:ember-compatibility` – Runs the test suite against multiple Ember versions
1919

2020
## Running the dummy application
2121

22-
- `yarn start`
22+
- `pnpm start`
2323
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
2424

2525
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
},
1919
"scripts": {
2020
"build": "ember build --environment=production",
21-
"lint": "concurrently \"yarn:lint:*(!fix)\" --names \"lint:\"",
21+
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
2222
"lint:css": "stylelint \"**/*.css\"",
23-
"lint:css:fix": "concurrently \"yarn:lint:css -- --fix\"",
24-
"lint:fix": "concurrently \"yarn:lint:*:fix\" --names \"fix:\"",
23+
"lint:css:fix": "concurrently \"pnpm:lint:css -- --fix\"",
24+
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
2525
"lint:hbs": "ember-template-lint .",
2626
"lint:hbs:fix": "ember-template-lint . --fix",
2727
"lint:js": "eslint . --cache",
2828
"lint:js:fix": "eslint . --fix",
2929
"start": "ember serve",
30-
"test": "concurrently \"yarn:lint\" \"yarn:test:*\" --names \"lint,test:\"",
30+
"test": "concurrently \"pnpm:lint\" \"pnpm:test:*\" --names \"lint,test:\"",
3131
"test:ember": "ember test",
3232
"test:ember-compatibility": "ember try:each"
3333
},

0 commit comments

Comments
 (0)