diff options
Diffstat (limited to 'packages/metacoin')
-rw-r--r-- | packages/metacoin/package.json | 8 | ||||
-rw-r--r-- | packages/metacoin/test/metacoin_test.ts | 1 | ||||
-rw-r--r-- | packages/metacoin/tsconfig.json | 13 |
3 files changed, 17 insertions, 5 deletions
diff --git a/packages/metacoin/package.json b/packages/metacoin/package.json index 6db14334e..6b6ab9c40 100644 --- a/packages/metacoin/package.json +++ b/packages/metacoin/package.json @@ -17,7 +17,7 @@ "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", "test:profile": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html", - "run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js lib/test/global_hooks.js --bail --exit --timeout 10000", + "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js lib/test/global_hooks.js --bail --exit --timeout 10000", "generate_contract_wrappers": "abi-gen --abis 'artifacts/Metacoin.json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers --backend ethers", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", @@ -36,11 +36,15 @@ "@0xproject/subproviders": "^0.10.4", "@0xproject/tslint-config": "^0.4.20", "@0xproject/types": "^0.8.1", + "@0xproject/typescript-typings": "^0.4.1", "@0xproject/utils": "^0.7.1", "@0xproject/web3-wrapper": "^0.7.1", - "ethereum-types": "^0.0.1", + "@types/mocha": "^5.2.2", + "copyfiles": "^2.0.0", + "ethereum-types": "^0.0.2", "ethers": "3.0.22", "lodash": "^4.17.4", + "run-s": "^0.0.0", "web3-provider-engine": "^14.0.4" }, "devDependencies": { diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts index 78de57a2a..89c2c3b4c 100644 --- a/packages/metacoin/test/metacoin_test.ts +++ b/packages/metacoin/test/metacoin_test.ts @@ -3,7 +3,6 @@ import { ContractArtifact } from '@0xproject/sol-compiler'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; -import 'make-promises-safe'; import * as MetacoinArtifact from '../artifacts/Metacoin.json'; import { MetacoinContract, TransferContractEventArgs } from '../src/contract_wrappers/metacoin'; diff --git a/packages/metacoin/tsconfig.json b/packages/metacoin/tsconfig.json index 8b4cd47a2..bc3bd1e94 100644 --- a/packages/metacoin/tsconfig.json +++ b/packages/metacoin/tsconfig.json @@ -1,7 +1,16 @@ { - "extends": "../../tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "lib": ["es2017"], + "skipLibCheck": true, + "typeRoots": [ + "comment: for building within 0x-monorepo:", + "../../node_modules/@0xproject/typescript-typings/types", + "../../node_modules/@types", + "comment: for building in an isolated environment:", + "node_modules/@0xproject/typescript-typings/types", + "node_modules/@types" + ] }, "include": ["src/**/*", "test/**/*"] } |