Target in app tsconfig is set to es2022 by the Angular CLI, so we must set it as well to be consistent in the rest of the tooling. Angular compilation later uses browserslist for further transpilations. Target in unit tests is kept at es2016 because of a known bug in Angular: https://github.com/angular/angular/issues/31730
30 lines
608 B
JSON
30 lines
608 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"outDir": "./out-tsc/tests",
|
|
"target": "es2016",
|
|
"allowJs": true,
|
|
"esModuleInterop": true,
|
|
"emitDecoratorMetadata": true,
|
|
"types": [
|
|
"@moodlehq/cordova-plugin-file-transfer",
|
|
"@moodlehq/cordova-plugin-inappbrowser",
|
|
"cordova-plugin-moodleapp",
|
|
"cordova",
|
|
"dom-mediacapture-record",
|
|
"faker",
|
|
"jest",
|
|
"node",
|
|
"resize-observer-browser"
|
|
]
|
|
},
|
|
"files": [
|
|
"src/testing/setup.ts",
|
|
"src/polyfills.ts"
|
|
],
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.d.ts"
|
|
]
|
|
}
|