mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-20 00:06:24 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
+4
-5
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
+4
-5
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user