diff --git a/angular/tsconfig.json b/angular/tsconfig.json index 36dffb933d..07c6a21dff 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 3366a0dda7..2fbb1d8d42 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 36dffb933d..07c6a21dff 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 9836d5192c..07c6a21dff 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 0000000000..3a70f6b92c --- /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" + } +}