From e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Wed, 29 Aug 2018 11:15:30 -0700 Subject: feat: Add support for TypeScript project references (#991) * Update all package.json and tsconfig.json * fix(contracts): Make test/utils/web3_wrapper.ts compatible with project refs * Fix webpack config for 0x.js * Fix linter errors by adding rootDir to tsconfig.json as needed * Add build:ts and watch:ts commands to package.json * Update sra-spec to work with project references * Update tsconfig.json with latest new/removed packages * Add TypeScript as devDependency at root * Add missing rootDir to forwarder-helper package * Use a separate tsconfig file for typedoc * Fix linter errors * Apply PR feedback (add comments) * Fix 0x.js tsconfig --- tsconfig.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 4 deletions(-) (limited to 'tsconfig.json') diff --git a/tsconfig.json b/tsconfig.json index 588285140..a931b28b9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,14 +3,56 @@ "module": "commonjs", "target": "es5", "lib": ["es2017", "dom"], - "sourceMap": true, - "declaration": true, "experimentalDecorators": true, "downlevelIteration": true, "noImplicitReturns": true, "pretty": true, "skipLibCheck": true, "typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"], - "strict": true - } + "strict": true, + // These settings are required for TypeScript project references + "composite": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true + }, + // The root of the project is just a list of references and does not contain + // any top-level TypeScript code. + "include": [], + "references": [ + { "path": "./packages/0x.js" }, + { "path": "./packages/abi-gen" }, + { "path": "./packages/assert" }, + { "path": "./packages/base-contract" }, + { "path": "./packages/connect" }, + { "path": "./packages/contract-wrappers" }, + { "path": "./packages/contracts" }, + { "path": "./packages/dev-utils" }, + { "path": "./packages/ethereum-types" }, + { "path": "./packages/fill-scenarios" }, + { "path": "./packages/forwarder-helper" }, + { "path": "./packages/json-schemas" }, + { "path": "./packages/metacoin" }, + { "path": "./packages/migrations" }, + { "path": "./packages/monorepo-scripts" }, + { "path": "./packages/order-utils" }, + { "path": "./packages/order-watcher" }, + { "path": "./packages/react-docs" }, + { "path": "./packages/react-shared" }, + { "path": "./packages/sol-compiler" }, + { "path": "./packages/sol-cov" }, + { "path": "./packages/sol-resolver" }, + { "path": "./packages/sra-report" }, + { "path": "./packages/sra-spec" }, + { "path": "./packages/subproviders" }, + { "path": "./packages/testnet-faucets" }, + { "path": "./packages/tslint-config" }, + { "path": "./packages/types" }, + { "path": "./packages/typescript-typings" }, + { "path": "./packages/utils" }, + { "path": "./packages/web3-wrapper" } + // Skipping website because it requires allowJs: false and this is + // incompatible with project references. + // { "path": "./packages/website" } + ] } -- cgit v1.2.3 From 7b46cef83dca0a743bd598a70076004983cbf294 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Fri, 14 Sep 2018 16:18:16 +0200 Subject: Create initial AssetBuyer class --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tsconfig.json') diff --git a/tsconfig.json b/tsconfig.json index a931b28b9..bc71dfb70 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,6 +23,7 @@ { "path": "./packages/0x.js" }, { "path": "./packages/abi-gen" }, { "path": "./packages/assert" }, + { "path": "./packages/asset-buyer" }, { "path": "./packages/base-contract" }, { "path": "./packages/connect" }, { "path": "./packages/contract-wrappers" }, @@ -30,7 +31,6 @@ { "path": "./packages/dev-utils" }, { "path": "./packages/ethereum-types" }, { "path": "./packages/fill-scenarios" }, - { "path": "./packages/forwarder-helper" }, { "path": "./packages/json-schemas" }, { "path": "./packages/metacoin" }, { "path": "./packages/migrations" }, -- cgit v1.2.3