X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Ftsconfig.json;h=785ed1c6c45b80d067db1983a54946e43ea0385b;hb=b99ee1b150257e0d54bde4b928dd9dc76b97ef7b;hp=a7b690c7b77ffa3e8dcac111b8a0b5f8bf77112a;hpb=4504f09f6e85f09b0489debb547a17209d7176ea;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tsconfig.json b/client/tsconfig.json index a7b690c7b..785ed1c6c 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -6,40 +6,96 @@ "sourceMap": true, "declaration": false, "moduleResolution": "node", - "module": "esnext", - "emitDecoratorMetadata": true, + "module": "es2020", "experimentalDecorators": true, "noImplicitAny": true, "noImplicitThis": true, - "suppressImplicitAnyIndexErrors":true, "alwaysStrict": true, "importHelpers": true, + "allowSyntheticDefaultImports": true, "strictBindCallApply": true, - "target": "es2015", + "target": "ES2022", "typeRoots": [ "node_modules/@types" ], "lib": [ + "ES2021.Intl", "es2018", + "es2017", + "es2016", + "es2015", "dom" ], "baseUrl": "./", "paths": { - "video.js": [ "node_modules/video.js/core" ], - "@app/*": [ "src/app/*" ], - "@shared/*": [ "../shared/*" ], - "@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/noop.ts" ], - "crypto": [ "src/shims/noop.ts" ] - } + "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", + "../server", + "node_modules" + ], "angularCompilerOptions": { "strictInjectionParameters": true, "fullTemplateTypeCheck": true, - "strictTemplates": true + "strictTemplates": true, + "enableI18nLegacyMessageIdFormat": false } }