diff --git a/package.json b/package.json index 3a4138d..ffa8150 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ }, "homepage": "https://github.com/artusjs/core#readme", "devDependencies": { + "@artus/tsconfig": "0.0.1", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", "@types/koa": "^2.13.4", diff --git a/tsconfig.json b/tsconfig.json index 3dda78f..4c5a8d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,38 +1,14 @@ { - "compilerOptions": { - "outDir": "./lib", - "target": "es2017", - "module": "commonjs", - "lib": [ - "es2015", - "es2016", - "es2017" - ], - "allowJs": false, - "jsx": "react", - "declaration": true, - "skipDefaultLibCheck": true, - "skipLibCheck": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "strictPropertyInitialization": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "moduleResolution": "node", - "types": [ - "node", - "jest", - "reflect-metadata" - ], - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true - }, - "exclude": [ - "lib", + "extends": "@artus/tsconfig", + "compilerOptions": { + "outDir": "./lib", + "types": [ + "node", + "jest", + "reflect-metadata" ], + }, + "exclude": [ + "lib", + ], }