diff --git a/package-lock.json b/package-lock.json index c31809c17..fca8b35e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1110,6 +1110,18 @@ "defer-to-connect": "^1.0.1" } }, + "@tsconfig/node12": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.7.tgz", + "integrity": "sha512-dgasobK/Y0wVMswcipr3k0HpevxFJLijN03A8mYfEPvWvOs14v0ZlYTR4kIgMx8g4+fTyTFv8/jLCIfRqLDJ4A==", + "dev": true + }, + "@tsconfig/node14": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.0.tgz", + "integrity": "sha512-RKkL8eTdPv6t5EHgFKIVQgsDapugbuOptNd9OOunN/HAkzmmTnZELx1kNCK0rSdUYGmiFMM3rRQMAWiyp023LQ==", + "dev": true + }, "@types/arrayify-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/arrayify-stream/-/arrayify-stream-1.0.0.tgz", diff --git a/package.json b/package.json index aa08063d3..c3f91930a 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,7 @@ }, "devDependencies": { "@microsoft/tsdoc-config": "^0.13.6", + "@tsconfig/node12": "^1.0.7", "@types/jest": "^26.0.13", "@types/rimraf": "^3.0.0", "@types/supertest": "^2.0.10", diff --git a/test/configs/Util.ts b/test/configs/Util.ts index 13a7b2589..e5706d2b9 100644 --- a/test/configs/Util.ts +++ b/test/configs/Util.ts @@ -200,7 +200,8 @@ export const instantiateFromConfig = async(componentUrl: string, configFile: str * Initializes the root container of the server. * Useful for when the RootContainerInitializer was not instantiated. */ -export const initServerStore = async(server: Server, baseUrl: string, headers: HeadersInit = {}): Promise => { +export const initServerStore = async(server: Server, baseUrl: string, + headers: Record = {}): Promise => { const res = await fetch(baseUrl, { method: 'PUT', headers: { diff --git a/test/tsconfig.json b/test/tsconfig.json index 8f935b236..f75e3dba3 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -1,10 +1,6 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es2017", - "esModuleInterop": true, - "incremental": true, - "noUnusedLocals": true, - "strict": true - } + "extends": "../tsconfig.json", + "include": [ + "." + ] } diff --git a/tsconfig.json b/tsconfig.json index e25e443e3..14f116e42 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,14 @@ { + "extends": "@tsconfig/node12/tsconfig.json", "compilerOptions": { - "module": "commonjs", - "target": "es2017", - "newLine": "lf", "declaration": true, - "esModuleInterop": true, "incremental": true, "inlineSources": true, + "newLine": "lf", "noUnusedLocals": true, - "preserveConstEnums": true, "outDir": "dist", + "preserveConstEnums": true, "sourceMap": true, - "strict": true, "stripInternal": true }, "include": [