Skip to content

Commit c4f2501

Browse files
authored
Fixed linking issues (#14)
1 parent 7046193 commit c4f2501

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ and then use it somewhere in a project:
2525
```
2626
<Method method={method} />
2727
```
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.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"build": "tsc --project tsconfig.build.json && cp src/ContentDescriptor/ContentDescriptor.css dist/ContentDescriptor/",
2121
"build:clean": "rimraf dist && yarn build",
2222
"build:docs": "typedoc",
23+
"link:setup": "rm -rf ./node_modules/react ./node_modules/react-dom",
2324
"lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
2425
"lint:changelog": "auto-changelog validate",
2526
"lint:constraints": "yarn constraints",

0 commit comments

Comments
 (0)