From 12011bf4da5a5f5272dfdec9bff0fc28fa512836 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 17 Jan 2022 13:21:20 +0100 Subject: [PATCH] Add a shared tsconfig file (#609) --- angular/tsconfig.json | 14 +------------- common/tsconfig.json | 17 +---------------- electron/tsconfig.json | 14 +------------- node/tsconfig.json | 15 +-------------- shared/tsconfig.json | 15 +++++++++++++++ 5 files changed, 19 insertions(+), 56 deletions(-) create mode 100644 shared/tsconfig.json diff --git a/angular/tsconfig.json b/angular/tsconfig.json index 36dffb933d8..07c6a21dff7 100644 --- a/angular/tsconfig.json +++ b/angular/tsconfig.json @@ -1,18 +1,6 @@ { + "extends": "../shared/tsconfig", "compilerOptions": { - "pretty": true, - "moduleResolution": "node", - "noImplicitAny": true, - "target": "ES6", - "module": "commonjs", - "lib": ["es5", "es6", "es7", "dom"], - "sourceMap": true, - "declaration": true, - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "declarationDir": "dist/types", - "outDir": "dist", "paths": { "jslib-common/*": ["../common/src/*"] } diff --git a/common/tsconfig.json b/common/tsconfig.json index 3366a0dda74..2fbb1d8d425 100644 --- a/common/tsconfig.json +++ b/common/tsconfig.json @@ -1,20 +1,5 @@ { - "compilerOptions": { - "pretty": true, - "moduleResolution": "node", - "noImplicitAny": true, - "target": "ES6", - "module": "commonjs", - "lib": ["es5", "es6", "es7", "dom"], - "sourceMap": true, - "declaration": true, - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "declarationDir": "dist/types", - "outDir": "dist", - "typeRoots": ["node_modules/@types"] - }, + "extends": "../shared/tsconfig", "include": ["src", "spec"], "exclude": ["node_modules", "dist"] } diff --git a/electron/tsconfig.json b/electron/tsconfig.json index 36dffb933d8..07c6a21dff7 100644 --- a/electron/tsconfig.json +++ b/electron/tsconfig.json @@ -1,18 +1,6 @@ { + "extends": "../shared/tsconfig", "compilerOptions": { - "pretty": true, - "moduleResolution": "node", - "noImplicitAny": true, - "target": "ES6", - "module": "commonjs", - "lib": ["es5", "es6", "es7", "dom"], - "sourceMap": true, - "declaration": true, - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "declarationDir": "dist/types", - "outDir": "dist", "paths": { "jslib-common/*": ["../common/src/*"] } diff --git a/node/tsconfig.json b/node/tsconfig.json index 9836d5192c3..07c6a21dff7 100644 --- a/node/tsconfig.json +++ b/node/tsconfig.json @@ -1,19 +1,6 @@ { + "extends": "../shared/tsconfig", "compilerOptions": { - "pretty": true, - "moduleResolution": "node", - "noImplicitAny": true, - "target": "ES6", - "module": "commonjs", - "lib": ["es5", "es6", "es7", "dom"], - "sourceMap": true, - "declaration": true, - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "declarationDir": "dist/types", - "outDir": "dist", - "types": [], "paths": { "jslib-common/*": ["../common/src/*"] } diff --git a/shared/tsconfig.json b/shared/tsconfig.json new file mode 100644 index 00000000000..3a70f6b92cf --- /dev/null +++ b/shared/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "pretty": true, + "moduleResolution": "node", + "noImplicitAny": true, + "target": "ES6", + "module": "commonjs", + "lib": ["es5", "es6", "es7", "dom"], + "sourceMap": true, + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "outDir": "dist" + } +}