From 924d13c9701e172b856e522642fd117b03d17760 Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Wed, 25 Jan 2017 13:54:11 +0100 Subject: [PATCH] Use one central typescript configuration --- .vscode/settings.json | 4 ++-- packages/graphql-server-core/tsconfig.json | 16 ++-------------- packages/graphql-server-express/tsconfig.json | 16 ++-------------- packages/graphql-server-hapi/tsconfig.json | 16 ++-------------- .../tsconfig.json | 16 ++-------------- packages/graphql-server-koa/tsconfig.json | 16 ++-------------- .../tsconfig.json | 16 ++-------------- .../tsconfig.json | 16 ++-------------- packages/graphql-server-restify/tsconfig.json | 16 ++-------------- tsconfig.json | 17 +++++++++++++++++ 10 files changed, 35 insertions(+), 114 deletions(-) create mode 100644 tsconfig.json diff --git a/.vscode/settings.json b/.vscode/settings.json index b27dc7b7..373e29df 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,9 +12,9 @@ "dist": true, "coverage": true, "coverage.lcov": true, - "tsconfig.json": true, + "tsconfig.json": false, "tslint.json": true, - "typings.json": false, + "typings.json": true, "typings": true, ".gitignore": false, "**/dist": true diff --git a/packages/graphql-server-core/tsconfig.json b/packages/graphql-server-core/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-core/tsconfig.json +++ b/packages/graphql-server-core/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-express/tsconfig.json b/packages/graphql-server-express/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-express/tsconfig.json +++ b/packages/graphql-server-express/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-hapi/tsconfig.json b/packages/graphql-server-hapi/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-hapi/tsconfig.json +++ b/packages/graphql-server-hapi/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-integration-testsuite/tsconfig.json b/packages/graphql-server-integration-testsuite/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-integration-testsuite/tsconfig.json +++ b/packages/graphql-server-integration-testsuite/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-koa/tsconfig.json b/packages/graphql-server-koa/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-koa/tsconfig.json +++ b/packages/graphql-server-koa/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-module-graphiql/tsconfig.json b/packages/graphql-server-module-graphiql/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-module-graphiql/tsconfig.json +++ b/packages/graphql-server-module-graphiql/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-module-operation-store/tsconfig.json b/packages/graphql-server-module-operation-store/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-module-operation-store/tsconfig.json +++ b/packages/graphql-server-module-operation-store/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/packages/graphql-server-restify/tsconfig.json b/packages/graphql-server-restify/tsconfig.json index 9c3bd3c1..915a719d 100644 --- a/packages/graphql-server-restify/tsconfig.json +++ b/packages/graphql-server-restify/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "../../tsconfig", "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "declaration": true, - "noImplicitAny": false, "rootDir": "./src", "outDir": "./dist", - "allowSyntheticDefaultImports": false, - "pretty": true, - "removeComments": true, - "lib": ["es6"], "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/node" + "node_modules/@types" ] }, "exclude": [ diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..f1d9c06e --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "declaration": true, + "noImplicitAny": false, + "allowSyntheticDefaultImports": false, + "pretty": true, + "removeComments": true, + "lib": ["es6"], + "types": [ + "@types/node" + ] + } +}