diff --git a/package.json b/package.json index d1b31259a80e..6feb36db9a57 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@crowdin/cli": "^3.5.2", "@jest/globals": "workspace:*", "@jest/test-utils": "workspace:*", + "@tsconfig/node10": "^1.0.8", "@types/babel__core": "^7.0.0", "@types/babel__generator": "^7.0.0", "@types/babel__template": "^7.0.0", diff --git a/tsconfig.json b/tsconfig.json index f019aa1126f4..27867b680cc8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,8 @@ { + "extends": "@tsconfig/node10/tsconfig.json", "compilerOptions": { - "target": "es2017", - "module": "commonjs", // Object.fromEntries - "lib": ["dom", "es2017", "es2019.object"], + "lib": ["dom", "es2019.object"], "declaration": true, "composite": true, "emitDeclarationOnly": true, @@ -22,6 +21,7 @@ "moduleResolution": "node", /* This needs to be false so our types are possible to consume without setting this */ "esModuleInterop": false, + "skipLibCheck": false, "resolveJsonModule": true }, "exclude": [ diff --git a/yarn.lock b/yarn.lock index 341be479503a..67b22f214c6c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2583,6 +2583,7 @@ __metadata: "@crowdin/cli": ^3.5.2 "@jest/globals": "workspace:*" "@jest/test-utils": "workspace:*" + "@tsconfig/node10": ^1.0.8 "@types/babel__core": ^7.0.0 "@types/babel__generator": ^7.0.0 "@types/babel__template": ^7.0.0 @@ -4424,6 +4425,13 @@ __metadata: languageName: node linkType: hard +"@tsconfig/node10@npm:^1.0.8": + version: 1.0.8 + resolution: "@tsconfig/node10@npm:1.0.8" + checksum: 0336493b89fb7c06409a1247a3fb00fac2755f21f3f8ae4b9dd2457859abfc5e8ca42b6d9ca5a279fe81bc70fe1f3450eef61e5dd5a63a7b4a6946ff31874816 + languageName: node + linkType: hard + "@types/aria-query@npm:^4.2.0": version: 4.2.2 resolution: "@types/aria-query@npm:4.2.2"