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 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 8d4aff4ca..04ca89fd1 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,11 @@ "install:all": "yarn install", "wsrun": "wsrun", "lerna": "lerna", - "watch": "wsrun watch_without_deps $PKG --fast-exit -r --stages --done-criteria='complete|successfully'", "build": "wsrun build $PKG --fast-exit -r --stages", "build:no_website": "wsrun build $PKG --fast-exit -r --stages --exclude @0xproject/website", "build:monorepo_scripts": "PKG=@0xproject/monorepo-scripts yarn build", + "build:ts": "tsc -b", + "watch:ts": "tsc -b -w", "clean": "wsrun clean $PKG --fast-exit -r --parallel", "remove_node_modules": "lerna clean --yes; rm -rf node_modules", "rebuild": "run-s clean build", @@ -51,6 +52,7 @@ "npm-run-all": "^4.1.2", "prettier": "^1.11.1", "source-map-support": "^0.5.6", + "typescript": "3.0.1", "wsrun": "^2.2.0" }, "resolutions": { -- cgit v1.2.3