diff --git a/packages/js/src/generators/init/files/__fileName__ b/packages/js/src/generators/init/files/__fileName__ index 11253ac5c2b7b..b73cce6c4252d 100644 --- a/packages/js/src/generators/init/files/__fileName__ +++ b/packages/js/src/generators/init/files/__fileName__ @@ -10,7 +10,7 @@ "importHelpers": true, "target": "es2015", "module": "esnext", - "lib": ["es2017", "dom"], + "lib": ["es2020", "dom"], "skipLibCheck": true, "skipDefaultLibCheck": true, "baseUrl": ".", diff --git a/packages/js/src/utils/typescript/create-ts-config.ts b/packages/js/src/utils/typescript/create-ts-config.ts index 6bb11be4781b8..1ba75d6c79e21 100644 --- a/packages/js/src/utils/typescript/create-ts-config.ts +++ b/packages/js/src/utils/typescript/create-ts-config.ts @@ -11,7 +11,7 @@ export const tsConfigBaseOptions = { importHelpers: true, target: 'es2015', module: 'esnext', - lib: ['es2017', 'dom'], + lib: ['es2020', 'dom'], skipLibCheck: true, skipDefaultLibCheck: true, baseUrl: '.',