aboutsummaryrefslogtreecommitdiffstats
path: root/tsconfig.json
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-08-30 02:15:30 +0800
committerGitHub <noreply@github.com>2018-08-30 02:15:30 +0800
commite7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2 (patch)
treed73fa81c94a066aafdd9871e3fdc9980ca6ea667 /tsconfig.json
parentf44644ad9029148c43f69d666356ed9fb18de4e2 (diff)
downloaddexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.tar
dexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.tar.gz
dexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.tar.bz2
dexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.tar.lz
dexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.tar.xz
dexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.tar.zst
dexon-sol-tools-e7d5ceb9c5487a5851dbfc1f8bdbe0182fedaef2.zip
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
Diffstat (limited to 'tsconfig.json')
-rw-r--r--tsconfig.json50
1 files changed, 46 insertions, 4 deletions
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" }
+ ]
}