Skip to content

Commit 49ada4d

Browse files
authored
Merge pull request #585 from LeetCode-OpenSource/chore/peer-deps
chore: should make react and rxjs as peer deps
2 parents ce4e61d + ac15c76 commit 49ada4d

File tree

5 files changed

+1521
-1511
lines changed

5 files changed

+1521
-1511
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
Using npm:
1515

1616
```
17-
$ npm i --save rxjs-hooks
17+
$ npm i --save rxjs-hooks rxjs
1818
```
1919

2020
Or yarn:
2121

2222
```
23-
$ yarn add rxjs-hooks
23+
$ yarn add rxjs-hooks rxjs
2424
```
2525

2626
## Quick look

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"test": "NODE_ENV=test jest --no-cache --ci",
1717
"lint": "yarn lint:eslint && yarn lint:tsc",
1818
"lint:eslint": "eslint . --ext .ts,.tsx --fix --max-warnings 0",
19-
"lint:tsc": "tsc -p ./tsconfig.json --noEmit"
19+
"lint:tsc": "tsc -p ./tsconfig.json --noEmit",
20+
"prepare": "husky install"
2021
},
2122
"repository": {
2223
"type": "git",
@@ -62,6 +63,10 @@
6263
"tslib": "^2.1.0",
6364
"use-constant": "^1.0.0"
6465
},
66+
"peerDependencies": {
67+
"react": "17.0.1",
68+
"rxjs": "^6.5.3"
69+
},
6570
"lint-staged": {
6671
"*.js": [
6772
"prettier --write",

0 commit comments

Comments
 (0)