Skip to content

Commit 80a4f29

Browse files
authored
chore: update core tsconfig based on @tsconfig/node16 (#6038)
1 parent 809b7b5 commit 80a4f29

File tree

5 files changed

+6
-26
lines changed

5 files changed

+6
-26
lines changed

packages/util-dynamodb/src/convertToAttr.spec.ts

-7
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,8 @@ describe("convertToAttr", () => {
9999
[true, false].forEach((convertClassInstanceToMap) => {
100100
const maxSafe = BigInt(Number.MAX_SAFE_INTEGER);
101101
[
102-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
103102
1n,
104-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
105103
maxSafe * 2n,
106-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
107104
maxSafe * -2n,
108105
BigInt(Number.MAX_VALUE),
109106
BigInt("0x1fffffffffffff"),
@@ -120,11 +117,8 @@ describe("convertToAttr", () => {
120117
[true, false].forEach((convertClassInstanceToMap) => {
121118
const maxSafe = BigInt(Number.MAX_SAFE_INTEGER);
122119
[
123-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
124120
1n,
125-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
126121
maxSafe * 2n,
127-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
128122
maxSafe * -2n,
129123
BigInt(Number.MAX_VALUE),
130124
BigInt("0x1fffffffffffff"),
@@ -263,7 +257,6 @@ describe("convertToAttr", () => {
263257
});
264258

265259
it("bigint set", () => {
266-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
267260
const bigNum = BigInt(Number.MAX_SAFE_INTEGER) + 2n;
268261
const set = new Set([bigNum, -bigNum]);
269262
expect(convertToAttr(set)).toEqual({ NS: Array.from(set).map((num) => num.toString()) });

packages/util-dynamodb/src/convertToAttrToNative.spec.ts

-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ describe("convertToAttrToNative", () => {
4545
describe("bigint", () => {
4646
const maxSafe = BigInt(Number.MAX_SAFE_INTEGER);
4747
[
48-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
4948
maxSafe * 2n,
50-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
5149
maxSafe * -2n,
5250
BigInt(Number.MAX_VALUE),
5351
BigInt("0x1fffffffffffffff"),
@@ -147,7 +145,6 @@ describe("convertToAttrToNative", () => {
147145
});
148146

149147
describe("bigint set", () => {
150-
// @ts-expect-error BigInt literals are not available when targeting lower than ES2020.
151148
const bigNum = BigInt(Number.MAX_SAFE_INTEGER) + 2n;
152149
const set = new Set([bigNum, -bigNum]);
153150

tsconfig.cjs.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"importHelpers": true,
5-
"module": "commonjs",
6-
"noEmitHelpers": false,
7-
"target": "ES2018",
8-
"strict": true
9-
}
2+
"extends": "./tsconfig.json"
103
}

tsconfig.es.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"importHelpers": true,
5-
"module": "esnext",
6-
"noEmitHelpers": false,
7-
"target": "ES2020",
8-
"strict": true
4+
"lib": ["dom"],
5+
"module": "esnext"
96
}
107
}

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2+
"extends": "@tsconfig/node16/tsconfig.json",
23
"compilerOptions": {
34
"baseUrl": ".",
45
"downlevelIteration": true,
5-
"esModuleInterop": true,
66
"incremental": true,
7-
"lib": ["es2015", "dom"],
7+
"importHelpers": true,
88
"module": "commonjs",
99
"moduleResolution": "node",
10+
"noEmitHelpers": false,
1011
"noFallthroughCasesInSwitch": true,
1112
"paths": {
1213
"@aws-sdk/*": ["packages/*/"],
@@ -17,7 +18,6 @@
1718
"preserveConstEnums": true,
1819
"removeComments": true,
1920
"resolveJsonModule": true,
20-
"target": "es5",
2121
"useUnknownInCatchVariables": false,
2222
"experimentalDecorators": true,
2323
"jsx": "react",

0 commit comments

Comments
 (0)