X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Ftsconfig.json;h=785ed1c6c45b80d067db1983a54946e43ea0385b;hb=785471d3e681117b1b33285f04ecc7933055f75d;hp=beca79e01f7d89c967f4c072b0d86230a45cd858;hpb=be0f59b4eec3c2c4dcd151e2b174be39dff1568e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tsconfig.json b/client/tsconfig.json index beca79e01..785ed1c6c 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,50 +1,101 @@ { "compileOnSave": false, "compilerOptions": { + "downlevelIteration": true, "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", - "emitDecoratorMetadata": true, + "module": "es2020", "experimentalDecorators": true, "noImplicitAny": true, "noImplicitThis": true, - "suppressImplicitAnyIndexErrors":true, "alwaysStrict": true, - "target": "es5", + "importHelpers": true, + "allowSyntheticDefaultImports": true, + "strictBindCallApply": true, + "target": "ES2022", "typeRoots": [ "node_modules/@types" ], "lib": [ + "ES2021.Intl", + "es2018", "es2017", "es2016", "es2015", "dom" ], - "types": [ - "jasmine" - ], - "baseUrl": "src", + "baseUrl": "./", "paths": { - "@app/*": [ "app/*" ], - "video.js": [ "../node_modules/video.js/dist/alt/video.core.js" ], - "fs": [ "./shims/noop" ], - "http": [ "./shims/http" ], - "https": [ "./shims/https" ], - "path": [ "./shims/path" ], - "stream": [ "./shims/noop" ], - "crypto": [ "./shims/noop" ] - } - }, - "angularCompilerOptions": { - "strictInjectionParameters": true, - "fullTemplateTypeCheck": true + "hls.js": [ + "node_modules/hls.js/dist/hls.light" + ], + "video.js": [ + "node_modules/video.js/core" + ], + "@app/*": [ + "src/app/*" + ], + "@shared/models/*": [ + "../shared/models/*" + ], + "@shared/models": [ + "../shared/models" + ], + "@shared/core-utils": [ + "../shared/core-utils" + ], + "@shared/core-utils/*": [ + "../shared/core-utils/*" + ], + "@shared/typescript-utils": [ + "../shared/typescript-utils" + ], + "@shared/typescript-utils/*": [ + "../shared/typescript-utils/*" + ], + "@root-helpers/*": [ + "src/root-helpers/*" + ], + "fs": [ + "src/shims/noop.ts" + ], + "http": [ + "src/shims/http.ts" + ], + "https": [ + "src/shims/https.ts" + ], + "path": [ + "src/shims/path.ts" + ], + "stream": [ + "src/shims/stream.ts" + ], + "crypto": [ + "src/shims/noop.ts" + ] + }, + "useDefineForClassFields": false }, + "files": [ + "src/polyfills.ts" + ], + "include": [ + "src/main*.ts", + "src/**/*.d.ts", + "src/shims/*.ts" + ], "exclude": [ "../node_modules", - "node_modules", - "dist", "../server", - "src/**/*.spec.ts" - ] + "node_modules" + ], + "angularCompilerOptions": { + "strictInjectionParameters": true, + "fullTemplateTypeCheck": true, + "strictTemplates": true, + "enableI18nLegacyMessageIdFormat": false + } }