aboutsummaryrefslogtreecommitdiffstats
path: root/packages/assert
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-27 23:47:45 +0800
committerGitHub <noreply@github.com>2018-03-27 23:47:45 +0800
commit066d13f5b7260d28b13195c4f9aed48b4ae96cc3 (patch)
tree5326f5b5789cc30ea6c5262a4ac19978737081ef /packages/assert
parent26e9696ddb004759a4a7c5f4a8901dc3255a70f9 (diff)
parentec06d8d6067488b53183db392b4da91be0cc219e (diff)
downloaddexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.tar
dexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.tar.gz
dexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.tar.bz2
dexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.tar.lz
dexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.tar.xz
dexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.tar.zst
dexon-sol-tools-066d13f5b7260d28b13195c4f9aed48b4ae96cc3.zip
Merge pull request #480 from 0xProject/feature/clean-state-tests
Add clean-state tests
Diffstat (limited to 'packages/assert')
-rw-r--r--packages/assert/README.md16
-rw-r--r--packages/assert/package.json2
-rw-r--r--packages/assert/tsconfig.json7
3 files changed, 10 insertions, 15 deletions
diff --git a/packages/assert/README.md b/packages/assert/README.md
index 1ea6acfb5..7f80e7e5d 100644
--- a/packages/assert/README.md
+++ b/packages/assert/README.md
@@ -8,14 +8,6 @@ Standard type and schema assertions to be used across all 0x projects and packag
yarn add @0xproject/assert
```
-If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
-
-```
-"include": [
- "./node_modules/web3-typescript-typings/index.d.ts",
-]
-```
-
## Usage
```typescript
@@ -24,6 +16,14 @@ import { assert } from '@0xproject/assert';
assert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);
```
+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/assert/package.json b/packages/assert/package.json
index 73b3b7f37..3df7eab8d 100644
--- a/packages/assert/package.json
+++ b/packages/assert/package.json
@@ -32,7 +32,6 @@
"@types/mocha": "^2.2.42",
"@types/valid-url": "^1.0.2",
"chai": "^4.0.1",
- "chai-typescript-typings": "^0.0.6",
"copyfiles": "^1.2.0",
"dirty-chai": "^2.0.1",
"mocha": "^4.0.1",
@@ -45,6 +44,7 @@
"dependencies": {
"@0xproject/json-schemas": "^0.7.17",
"@0xproject/utils": "^0.4.3",
+ "@0xproject/typescript-typings": "^0.0.1",
"lodash": "^4.17.4",
"valid-url": "^1.0.9"
},
diff --git a/packages/assert/tsconfig.json b/packages/assert/tsconfig.json
index 10354fa33..e35816553 100644
--- a/packages/assert/tsconfig.json
+++ b/packages/assert/tsconfig.json
@@ -3,10 +3,5 @@
"compilerOptions": {
"outDir": "lib"
},
- "include": [
- "./src/**/*",
- "./test/**/*",
- "../../node_modules/web3-typescript-typings/index.d.ts",
- "../../node_modules/chai-typescript-typings/index.d.ts"
- ]
+ "include": ["./src/**/*", "./test/**/*"]
}