Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade build targets to ES2021 #3775

Merged
merged 14 commits into from
Apr 14, 2023
2 changes: 1 addition & 1 deletion examples/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es2021",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/benchmarks/generator/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "es2019",
"target": "es2021",
"module": "es2015",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/benchmarks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"composite": true,
"target": "es2019",
"target": "es2021",
"module": "esnext",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/internal-scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"composite": true,
"target": "es2020",
"target": "es2021",
"module": "es2020",
"moduleResolution": "node",
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/src/lib/analyze-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const createPackageAnalyzer = (
{
compilerOptions: {
// TODO(kschaaf): probably want to make this configurable
module: 'ES2020',
lib: ['es2020', 'DOM'],
module: 'es2021',
lib: ['es2021', 'DOM'],
allowJs: true,
skipLibCheck: true,
skipDefaultLibCheck: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ interface Cache {
* Common compiler options between TS & JS
*/
const compilerOptions: ts.CompilerOptions = {
target: ts.ScriptTarget.ES2020,
lib: ['es2020', 'DOM'],
target: ts.ScriptTarget.ES2021,
lib: ['es2021', 'DOM'],
module: ts.ModuleKind.ES2020,
outDir: './',
moduleResolution: ts.ModuleResolutionKind.NodeJs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./out",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/classes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/events/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/functions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/jsdoc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/modules/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/properties/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/test-files/ts/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["es2020", "DOM"],
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/analyzer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"incremental": true,
"composite": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"target": "es2020",
"lib": ["es2020"],
"target": "es2021",
"lib": ["es2021"],
"module": "ES2020",
"rootDir": "./src",
"moduleResolution": "node",
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/cli-localize/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es2021",
"module": "es2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es2021",
"module": "es2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/context/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"composite": true,
"target": "es2019",
"target": "es2021",
"module": "NodeNext",
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/eleventy-plugin-lit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"compilerOptions": {
"composite": true,
"incremental": true,
"target": "es2019",
"target": "es2021",
"module": "commonjs",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-manifest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"target": "ES2020",
"target": "es2021",
"module": "ES2020",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "es2021",
"module": "ES2020",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "es2019",
"target": "es2021",
"module": "es2015",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export const tsconfigTemplate = () => {
return JSON.stringify(
{
compilerOptions: {
target: 'es2019',
target: 'es2021',
module: 'es2015',
lib: ['es2020', 'DOM', 'DOM.Iterable'],
lib: ['es2021', 'DOM', 'DOM.Iterable'],
declaration: true,
declarationMap: true,
sourceMap: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-wrapper-angular/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es2021",
"module": "es2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "es2019",
"target": "es2021",
"module": "es2015",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-wrapper-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ const tsconfigTemplate = () => {
return JSON.stringify(
{
compilerOptions: {
target: 'es2019',
target: 'es2021',
module: 'es2015',
lib: ['es2020', 'DOM', 'DOM.Iterable'],
lib: ['es2021', 'DOM', 'DOM.Iterable'],
declaration: true,
declarationMap: true,
sourceMap: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-wrapper-react/test-output/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"composite": true,
"target": "es2019",
"target": "es2021",
"module": "es2015",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-wrapper-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"target": "ES2020",
"target": "es2021",
"module": "ES2020",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/gen-wrapper-vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"target": "ES2020",
"target": "es2021",
"module": "ES2020",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"lib": ["es2020"],
"lib": ["es2021"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/motion/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"composite": true,
"target": "es2019",
"target": "es2021",
"module": "NodeNext",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./tsconfig.tsbuildinfo",
"target": "es2020",
"target": "es2021",
"module": "CommonJS",
"moduleResolution": "NodeNext",
"lib": ["es2020"],
"lib": ["es2021"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/observers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"composite": true,
"target": "es2019",
"target": "es2021",
"module": "NodeNext",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"composite": true,
"target": "es2019",
"target": "es2021",
"module": "NodeNext",
"lib": ["es2020", "DOM", "DOM.Iterable"],
"lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down