From 61970e4a8b2274cee2b2b69bbb21b0d238c7f5a7 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 21 Mar 2026 15:11:17 -0700 Subject: [PATCH] feat: modernize TypeScript configuration Bump targets from ES2020 to ES2022, update moduleResolution to "bundler" for tsconfigs (modern standard for bundler-consumed libraries) and Node16 for build scripts. Remove unused genDir: "aot" from angularCompilerOptions. Clean up stale .gitignore entries. --- .gitignore | 4 ---- tsconfig.core.json | 9 ++++----- tsconfig.json | 9 ++++----- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 7ee927224..aaa28142e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,6 @@ node_modules/ .idea .tmp -aot/ -scripts/ionic-native-bower -scripts/docs-json/*.json -scripts/docs-json/typedoc-docs dist/ src/@awesome-cordova-plugins/plugins/**/ngx *.d.ts diff --git a/tsconfig.core.json b/tsconfig.core.json index 0ebcf67dc..1610196a9 100644 --- a/tsconfig.core.json +++ b/tsconfig.core.json @@ -6,20 +6,19 @@ "experimentalDecorators": true, "emitDecoratorMetadata": true, "noImplicitAny": true, - "module": "es2015", - "moduleResolution": "node", + "module": "es2022", + "moduleResolution": "bundler", "outDir": "./dist", "rootDir": "src", - "target": "es5", + "target": "es2022", "skipLibCheck": true, - "lib": ["es2017", "dom"], + "lib": ["es2022", "dom"], "inlineSources": true, "sourceMap": true }, "include": ["src/@awesome-cordova-plugins/core/**/*.ts"], "exclude": ["node_modules", "src/@awesome-cordova-plugins/core/**/*.spec.ts"], "angularCompilerOptions": { - "genDir": "aot", "compilationMode": "partial" } } diff --git a/tsconfig.json b/tsconfig.json index 561cad688..cd1157466 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,22 +6,21 @@ "experimentalDecorators": true, "emitDecoratorMetadata": true, "noImplicitAny": true, - "module": "es2015", - "moduleResolution": "node", + "module": "es2022", + "moduleResolution": "bundler", "paths": { "@awesome-cordova-plugins/core": ["./dist/@awesome-cordova-plugins/core"] }, "outDir": "./dist", "rootDir": "src", - "target": "es5", + "target": "es2022", "skipLibCheck": true, - "lib": ["es2017", "dom"], + "lib": ["es2022", "dom"], "inlineSources": true, "inlineSourceMap": true }, "include": ["src/@awesome-cordova-plugins/plugins/**/*.ts"], "angularCompilerOptions": { - "genDir": "aot", "compilationMode": "partial" } }