File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,9 @@ and then use it somewhere in a project:
25
25
```
26
26
<Method method={method} />
27
27
```
28
+
29
+ ## Development
30
+
31
+ ### Linking
32
+
33
+ When linking this project with others, use ` yarn link:setup ` to avoid getting errors about hooks / multiple react versions.
Original file line number Diff line number Diff line change 20
20
"build" : " tsc --project tsconfig.build.json && cp src/ContentDescriptor/ContentDescriptor.css dist/ContentDescriptor/" ,
21
21
"build:clean" : " rimraf dist && yarn build" ,
22
22
"build:docs" : " typedoc" ,
23
+ "link:setup" : " rm -rf ./node_modules/react ./node_modules/react-dom" ,
23
24
"lint" : " yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog" ,
24
25
"lint:changelog" : " auto-changelog validate" ,
25
26
"lint:constraints" : " yarn constraints" ,
You can’t perform that action at this time.
0 commit comments