Skip to content

Commit 6311daa

Browse files
author
Nejc
committed
fix: replaced npm with yarn (gatsby-plugin-mdx kept failing to parse mdx files)
1 parent 923540d commit 6311daa

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
name: Running tests...
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Use node.js ${{ matrix.node-version }}
@@ -20,15 +20,14 @@ jobs:
2020

2121
- name: Install and test
2222
run: |
23-
npm install
24-
npm run validate
23+
yarn install
24+
yarn validate
2525
2626
- name: Building docs
27-
run: npm run docz:build
27+
run: yarn docz:build
2828
- name: Deploy 🚀
2929
uses: JamesIves/github-pages-deploy-action@3.5.9
3030
with:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
BRANCH: gh-pages
3333
FOLDER: .docz/dist
34-

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"trailingComma": "all",
99
"bracketSpacing": false,
1010
"jsxBracketSameLine": false,
11-
"proseWrap": "always"
11+
"proseWrap": "always",
12+
"endOfLine": "lf"
1213
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ ones refactored to improve code quality.
5050
# Clone repo
5151
$ git clone https://github.com/nejcm/js-algorithms.git my-project
5252

53-
# Install dependencies and run lint and tests
54-
$ npm setup
53+
# Install dependencies, run lint and tests
54+
$ yarn setup
5555

56-
# Run project
57-
$ npm run start
56+
# Run project docs
57+
$ yarn start
5858

5959
```
6060

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
"@testing-library/jest-dom": "^5.11.2",
7272
"@testing-library/react": "^10.4.8",
7373
"@testing-library/react-hooks": "^3.4.1",
74-
"@testing-library/user-event": "^12.1.0",
74+
"@testing-library/user-event": "^12.1.1",
7575
"@types/jest": "^26.0.9",
76-
"@types/react": "^16.9.44",
76+
"@types/react": "^16.9.45",
7777
"@typescript-eslint/eslint-plugin": "^3.8.0",
7878
"@typescript-eslint/parser": "^3.8.0",
7979
"babel-loader": "^8.1.0",
@@ -83,13 +83,13 @@
8383
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
8484
"cpy-cli": "^3.1.1",
8585
"cross-env": "^7.0.2",
86-
"docz": "2.3.1",
86+
"docz": "^2.3.1",
8787
"eslint": "^7.6.0",
8888
"eslint-config-kentcdodds": "^14.14.2",
8989
"eslint-config-react-app": "^5.2.1",
9090
"eslint-loader": "^4.0.2",
9191
"eslint-plugin-flowtype": "^5.2.0",
92-
"eslint-plugin-html": "^6.0.2",
92+
"eslint-plugin-html": "^6.0.3",
9393
"eslint-plugin-import": "^2.22.0",
9494
"eslint-plugin-jest": "^23.20.0",
9595
"eslint-plugin-jsx-a11y": "^6.3.1",
@@ -119,7 +119,7 @@
119119
"start-server-and-test": "^1.11.2",
120120
"ts-jest": "^26.1.4",
121121
"ts-loader": "^8.0.2",
122-
"tslib": "^2.0.0",
122+
"tslib": "^2.0.1",
123123
"typescript": "^3.9.7"
124124
}
125125
}

0 commit comments

Comments
 (0)