Skip to content

Commit 7f3ce49

Browse files
authored
chore: Migrate to npm from yarn (#213)
1 parent c6c2c1a commit 7f3ce49

File tree

5 files changed

+18035
-8620
lines changed

5 files changed

+18035
-8620
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
uses: actions/setup-node@v3
2222
with:
2323
node-version: ${{ matrix.node-version }}
24-
cache: 'yarn'
24+
cache: 'npm'
2525
- name: Install dependencies
26-
run: yarn --frozen-lockfile
26+
run: npm ci
2727
- name: Check
2828
run: |
29-
yarn run check
30-
yarn coverage
29+
npm run check
30+
npm run coverage
3131
- name: Coveralls
3232
uses: coverallsapp/github-action@1.1.3
3333
with:
@@ -59,9 +59,9 @@ jobs:
5959
uses: actions/setup-node@v3
6060
with:
6161
node-version: '20.x'
62-
cache: 'yarn'
62+
cache: 'npm'
6363
- name: Install dependencies
64-
run: yarn --frozen-lockfile
64+
run: npm ci
6565
- name: Release
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CONTRIBUTING.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Fork, then clone the repo:
2020
git clone https://github.com/your-username/elastic-builder.git
2121
```
2222

23-
Install dependencies using Yarn 1.x (install [node.js][2] and [Yarn][3] first if necessary).
23+
Install dependencies using npm.
2424
```
25-
yarn install
25+
npm install
2626
```
2727

2828
### Write code
@@ -36,11 +36,11 @@ elastic-builder is published to npm.
3636
### Run tests
3737

3838
This project uses eslint for javascript linting and ava for testing. Run
39-
linting using `yarn lint` and run tests using `yarn test`. Or run both using:
39+
linting using `npm run lint` and run tests using `npm run test`. Or run both using:
4040
```
41-
yarn run check
41+
npm run check
4242
```
43-
This should take care of formatting as well thanks to [eslint-plugin-prettier][4].
43+
This should take care of formatting as well thanks to [eslint-plugin-prettier][3].
4444

4545
### (Optional) Add yourself as a contributor
4646

@@ -61,10 +61,9 @@ helpful!
6161

6262
If you have any questions about the feature or fix you want to make, or if you
6363
have doubts about the approach, or anything else you're not sure about, the best
64-
way to get in touch is to [open an issue][5]. I am happy to help out.
64+
way to get in touch is to [open an issue][4]. I am happy to help out.
6565

6666
[1]: https://babeljs.io/docs/learn-es2015/
6767
[2]: https://nodejs.org/
68-
[3]: https://classic.yarnpkg.com/lang/en/docs/install/
69-
[4]: https://github.com/not-an-aardvark/eslint-plugin-prettier
70-
[5]: https://github.com/sudo-suhas/elastic-builder/issues/new
68+
[3]: https://github.com/not-an-aardvark/eslint-plugin-prettier
69+
[4]: https://github.com/sudo-suhas/elastic-builder/issues/new

deploy-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# (except in until or while loops, if-tests, list constructs)
66

77
if ! hash gh-pages 2> /dev/null; then
8-
yarn global add gh-pages
8+
npm i -g gh-pages
99
fi
1010

1111
gh-pages --add \

0 commit comments

Comments
 (0)