Skip to content

Commit 9b36f71

Browse files
committed
Find and replace relevent usages of yarn with pnpm
1 parent 92516d4 commit 9b36f71

File tree

7 files changed

+18
-21
lines changed

7 files changed

+18
-21
lines changed

Diff for: CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
* `git clone <repository-url>`
66
* `cd ember-test-helpers`
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
## Types
1515

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Installation
1818
------------------------------------------------------------------------------
1919
### For ember-qunit v5 and above
2020

21-
#### yarn
21+
#### pnpm
2222
```bash
23-
yarn add --dev @ember/test-helpers
23+
pnpm add --dev @ember/test-helpers
2424
```
2525

2626
#### npm
@@ -59,11 +59,11 @@ Contributing
5959

6060
* `git clone <repository-url>`
6161
* `cd ember-test-helpers`
62-
* `yarn install`
62+
* `pnpm install`
6363

6464
### Running tests
6565

66-
* `yarn test` (Runs `ember try:each` to test your addon against multiple Ember versions)
66+
* `pnpm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
6767
* `ember test`
6868
* `ember test --server`
6969

Diff for: addon/RELEASE.md

+1-1
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

Diff for: addon/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424
},
2525
"scripts": {
2626
"build:types": "tsc --project types.tsconfig.json",
27-
"build:js": "yarn babel --extensions '.ts' --presets @babel/preset-typescript addon-test-support --out-dir addon-test-support/ --ignore '**/*.d.ts'",
27+
"build:js": "pnpm babel --extensions '.ts' --presets @babel/preset-typescript addon-test-support --out-dir addon-test-support/ --ignore '**/*.d.ts'",
2828
"build": "concurrently \"npm:build:*\" --names \"build:\"",
29-
"prepack": "cp ../README.md ./ && yarn build",
29+
"prepack": "cp ../README.md ./ && pnpm build",
3030
"postpack": "rimraf addon-test-support/**/*.js public-types",
3131
"clean": "git clean -x -f",
32-
"docs": "yarn build && documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml --markdown-toc-max-depth 3 -f md -o API.md",
32+
"docs": "pnpm build && documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml --markdown-toc-max-depth 3 -f md -o API.md",
3333
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
3434
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
3535
"lint:js": "eslint --cache .",
3636
"lint:js:fix": "eslint . --fix",
3737
"lint:ts": "tsc --noEmit && tsc --noEmit --project type-tests",
38-
"postpublish": "yarn clean",
38+
"postpublish": "pnpm clean",
3939
"release": "release-it",
4040
"start": "ember serve",
4141
"test": "ember test",
@@ -130,7 +130,7 @@
130130
},
131131
"release-it": {
132132
"scripts": {
133-
"after:bump": "yarn docs"
133+
"after:bump": "pnpm docs"
134134
},
135135
"plugins": {
136136
"release-it-lerna-changelog": {

Diff for: addon/tests/dummy/config/ember-cli-update.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
"outputRepo": "https://github.com/ember-cli/ember-addon-output",
1111
"codemodsSource": "ember-addon-codemods-manifest@1",
1212
"isBaseBlueprint": true,
13-
"options": [
14-
"--welcome",
15-
"--yarn"
16-
]
13+
"options": ["--no-welcome", "--pnpm"]
1714
}
1815
]
1916
}

Diff for: addon/tests/dummy/config/ember-try.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = async function () {
3434
};
3535

3636
return {
37-
useYarn: true,
37+
usePnpm: true,
3838
scenarios: [
3939
{
4040
name: 'ember-lts-4.4',

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"license": "(MIT OR Apache-2.0)",
66
"repository": "https://github.com/emberjs/ember-test-helpers",
77
"scripts": {
8-
"lint": "yarn workspaces run lint",
9-
"lint:fix": "yarn workspaces run lint:fix",
10-
"test": "yarn workspaces run test"
8+
"lint": "pnpm --filter '*' lint",
9+
"lint:fix": "pnpm --filter '*' lint:fix",
10+
"test": "pnpm --filter '*' test"
1111
},
1212
"volta": {
1313
"node": "18.20.4",

0 commit comments

Comments
 (0)