Skip to content

Commit 90183c6

Browse files
authored
chore: update tsconfig templates, companion to #1692 (#1754)
* chore: update tsconfig templates, companion to #1692 * adjust esm tsconfig template, actually add baselines
1 parent 9f44d21 commit 90183c6

40 files changed

Lines changed: 120 additions & 60 deletions

File tree

core/generator/gapic-generator-typescript/baselines/asset-esm/tsconfig.json.baseline

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"isolatedModules": false,
1515
"emitDeclarationOnly": true,
1616
"lib": [
17-
"es2018",
17+
"es2023",
1818
"dom"
1919
]
2020
},
@@ -25,6 +25,8 @@
2525
"esm/test/**/*.ts",
2626
"esm/src/**/*.json",
2727
"esm/system-test/*.ts",
28-
"esm/src/*.cjs"
28+
"esm/src/*.cjs",
29+
"samples/**/*.json",
30+
"protos/protos.json"
2931
]
3032
}

core/generator/gapic-generator-typescript/baselines/asset/tsconfig.json.baseline

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "build",
66
"resolveJsonModule": true,
77
"lib": [
8-
"es2018",
8+
"es2023",
99
"dom"
1010
]
1111
},
@@ -16,6 +16,7 @@
1616
"test/**/*.ts",
1717
"system-test/*.ts",
1818
"src/**/*.json",
19+
"samples/**/*.json",
1920
"protos/protos.json"
2021
]
2122
}

core/generator/gapic-generator-typescript/baselines/bigquery-storage-esm/tsconfig.json.baseline

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"isolatedModules": false,
1515
"emitDeclarationOnly": true,
1616
"lib": [
17-
"es2018",
17+
"es2023",
1818
"dom"
1919
]
2020
},
@@ -25,6 +25,8 @@
2525
"esm/test/**/*.ts",
2626
"esm/src/**/*.json",
2727
"esm/system-test/*.ts",
28-
"esm/src/*.cjs"
28+
"esm/src/*.cjs",
29+
"samples/**/*.json",
30+
"protos/protos.json"
2931
]
3032
}

core/generator/gapic-generator-typescript/baselines/bigquery-storage/tsconfig.json.baseline

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "build",
66
"resolveJsonModule": true,
77
"lib": [
8-
"es2018",
8+
"es2023",
99
"dom"
1010
]
1111
},
@@ -16,6 +16,7 @@
1616
"test/**/*.ts",
1717
"system-test/*.ts",
1818
"src/**/*.json",
19+
"samples/**/*.json",
1920
"protos/protos.json"
2021
]
2122
}

core/generator/gapic-generator-typescript/baselines/bigquery-v2-esm/tsconfig.json.baseline

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"isolatedModules": false,
1515
"emitDeclarationOnly": true,
1616
"lib": [
17-
"es2018",
17+
"es2023",
1818
"dom"
1919
]
2020
},
@@ -25,6 +25,8 @@
2525
"esm/test/**/*.ts",
2626
"esm/src/**/*.json",
2727
"esm/system-test/*.ts",
28-
"esm/src/*.cjs"
28+
"esm/src/*.cjs",
29+
"samples/**/*.json",
30+
"protos/protos.json"
2931
]
3032
}

core/generator/gapic-generator-typescript/baselines/bigquery-v2/tsconfig.json.baseline

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "build",
66
"resolveJsonModule": true,
77
"lib": [
8-
"es2018",
8+
"es2023",
99
"dom"
1010
]
1111
},
@@ -16,6 +16,7 @@
1616
"test/**/*.ts",
1717
"system-test/*.ts",
1818
"src/**/*.json",
19+
"samples/**/*.json",
1920
"protos/protos.json"
2021
]
2122
}

core/generator/gapic-generator-typescript/baselines/compute-esm/tsconfig.json.baseline

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"isolatedModules": false,
1515
"emitDeclarationOnly": true,
1616
"lib": [
17-
"es2018",
17+
"es2023",
1818
"dom"
1919
]
2020
},
@@ -25,6 +25,8 @@
2525
"esm/test/**/*.ts",
2626
"esm/src/**/*.json",
2727
"esm/system-test/*.ts",
28-
"esm/src/*.cjs"
28+
"esm/src/*.cjs",
29+
"samples/**/*.json",
30+
"protos/protos.json"
2931
]
3032
}

core/generator/gapic-generator-typescript/baselines/compute/tsconfig.json.baseline

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "build",
66
"resolveJsonModule": true,
77
"lib": [
8-
"es2018",
8+
"es2023",
99
"dom"
1010
]
1111
},
@@ -16,6 +16,7 @@
1616
"test/**/*.ts",
1717
"system-test/*.ts",
1818
"src/**/*.json",
19+
"samples/**/*.json",
1920
"protos/protos.json"
2021
]
2122
}

core/generator/gapic-generator-typescript/baselines/deprecatedtest-esm/tsconfig.json.baseline

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"isolatedModules": false,
1515
"emitDeclarationOnly": true,
1616
"lib": [
17-
"es2018",
17+
"es2023",
1818
"dom"
1919
]
2020
},
@@ -25,6 +25,8 @@
2525
"esm/test/**/*.ts",
2626
"esm/src/**/*.json",
2727
"esm/system-test/*.ts",
28-
"esm/src/*.cjs"
28+
"esm/src/*.cjs",
29+
"samples/**/*.json",
30+
"protos/protos.json"
2931
]
3032
}

core/generator/gapic-generator-typescript/baselines/deprecatedtest/tsconfig.json.baseline

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "build",
66
"resolveJsonModule": true,
77
"lib": [
8-
"es2018",
8+
"es2023",
99
"dom"
1010
]
1111
},
@@ -16,6 +16,7 @@
1616
"test/**/*.ts",
1717
"system-test/*.ts",
1818
"src/**/*.json",
19+
"samples/**/*.json",
1920
"protos/protos.json"
2021
]
2122
}

0 commit comments

Comments
 (0)