aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/.npmignore1
-rw-r--r--packages/react-shared/README.md8
-rw-r--r--packages/react-shared/package.json4
3 files changed, 11 insertions, 2 deletions
diff --git a/packages/react-shared/.npmignore b/packages/react-shared/.npmignore
index 87bc30436..d645458f6 100644
--- a/packages/react-shared/.npmignore
+++ b/packages/react-shared/.npmignore
@@ -3,3 +3,4 @@ yarn-error.log
/src/
/scripts/
tsconfig.json
+/lib/monorepo_scripts/
diff --git a/packages/react-shared/README.md b/packages/react-shared/README.md
index da7ff83af..9165cf78d 100644
--- a/packages/react-shared/README.md
+++ b/packages/react-shared/README.md
@@ -8,6 +8,14 @@ Contains React components & frontend types/utils shared between 0x projects.
yarn add @0xproject/react-shared
```
+If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
+
+```json
+"compilerOptions": {
+ "typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
+}
+```
+
## Contributing
We strongly encourage that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.
diff --git a/packages/react-shared/package.json b/packages/react-shared/package.json
index e5201536e..8b7a0ebbb 100644
--- a/packages/react-shared/package.json
+++ b/packages/react-shared/package.json
@@ -33,8 +33,8 @@
"@types/lodash": "4.14.104",
"@types/material-ui": "0.18.0",
"@types/node": "^8.0.53",
- "@types/react": "^15.0.15",
- "@types/react-dom": "^0.14.23",
+ "@types/react": "^16.0.34",
+ "@types/react-dom": "^16.0.3",
"@types/react-scroll": "0.0.31",
"basscss": "^8.0.3",
"is-mobile": "^0.2.2",