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
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
"node": ">=6.12"
|
||||
},
|
||||
"description": "Standard Relayer API Open API Spec",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"main": "lib/src/index.js",
|
||||
"types": "lib/src/index.d.ts",
|
||||
"scripts": {
|
||||
"serve": "redoc-cli serve lib/api.json --watch",
|
||||
"watch_without_deps": "run-p build-json:watch serve",
|
||||
@@ -17,10 +17,10 @@
|
||||
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
|
||||
"test:circleci": "yarn test:coverage",
|
||||
"clean": "shx rm -rf lib",
|
||||
"build": "tsc && yarn copy_md_files && yarn build-json",
|
||||
"build-json": "ts-node build_scripts/buildJson.ts",
|
||||
"build": "tsc -b && yarn copy_md_files && yarn build-json",
|
||||
"build-json": "node ./lib/build_scripts/buildJson",
|
||||
"build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' ",
|
||||
"copy_md_files": "copyfiles -u 2 './src/md/**/*.md' ./lib/md",
|
||||
"copy_md_files": "copyfiles -u 2 './src/md/**/*.md' ./lib/src/md",
|
||||
"deploy-site": "discharge deploy"
|
||||
},
|
||||
"repository": {
|
||||
@@ -54,7 +54,7 @@
|
||||
"swagger-cli": "^2.1.1",
|
||||
"ts-node": "^7.0.0",
|
||||
"tslint": "5.11.0",
|
||||
"typescript": "2.7.1"
|
||||
"typescript": "3.0.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig",
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
"outDir": "lib",
|
||||
"rootDir": "."
|
||||
},
|
||||
"include": ["./src/**/*", "./test/*"]
|
||||
"include": ["./src/**/*", "./test/*", "./build_scripts/*", "./md/*"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user