Skip to content

Commit f8c355d

Browse files
authored
feat: abandon yarn, move to npm (#417)
* feat: abandon yarn, move to npm * fix: github workflows and package * chore: update dependencies
1 parent 499540c commit f8c355d

File tree

5 files changed

+11707
-5044
lines changed

5 files changed

+11707
-5044
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
uses: actions/setup-node@v2
1818
with:
1919
node-version: ${{ matrix.node_version }}
20-
cache: "yarn"
21-
- run: yarn install
22-
- run: yarn test:ci
20+
cache: "npm"
21+
- run: npm install
22+
- run: npm run test:ci

docs/CONTRIBUTING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ We're really glad you're reading this, because we need volunteers to help this p
44

55
## Prerequisites
66

7-
You will need node and yarn installed on your computer to run the code. And git to download it:
7+
You will need node installed on your computer to run the code. And git to download it:
88

99
- [node](https://nodejs.org/en/download/)
10-
- [yarn](https://yarnpkg.com/)
1110
- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
1211

1312
## Download the code
@@ -16,8 +15,8 @@ To download the code, use git:
1615

1716
```bash
1817
git clone https://github.com/tonaljs/tonal
19-
yarn install
20-
yarn build
18+
npm install
19+
npm build
2120
```
2221

2322
## Development
@@ -29,7 +28,7 @@ If you are adding new functionality or fixing a bug, please add a test for it.
2928
**Run test and build the library before submitting a pull request :pray:**
3029

3130
```bash
32-
yarn test:ci
31+
npm test:ci
3332
```
3433

3534
#### How to add a new module
@@ -40,7 +39,7 @@ To create a new module:
4039
- Add a new package.json inside the folder (see any of them as an example)
4140
- Add required dependencies to "dependencies" inside package.json. Ensure correct dependency versions. For example, if your module needs to use `tonal/core` look at core's package.json to see what version to use
4241
- Add your functionality and tests
43-
- Ensure everything works: run `yarn test:ci` at root folder
42+
- Ensure everything works: run `npm test:ci` at root folder
4443
- Create a pull request
4544

4645
## Release

0 commit comments

Comments
 (0)