X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Ftsconfig.json;h=1668cfced03d1c35a4a4944638bde0849cafea5a;hb=b00f185643e521c696eedff8c32701b723994acd;hp=fbdeb6d5df5c0e2ba85e12602e188772822d42e9;hpb=2ad9dcda240ee843c5e4a5b98cc94f7b2aab2c89;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tsconfig.json b/client/tsconfig.json index fbdeb6d5d..1668cfced 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -6,38 +6,97 @@ "sourceMap": true, "declaration": false, "moduleResolution": "node", - "module": "esnext", - "emitDecoratorMetadata": true, + "module": "es2020", "experimentalDecorators": true, "noImplicitAny": true, "noImplicitThis": true, - "suppressImplicitAnyIndexErrors":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": { - "@app/*": [ "src/app/*" ], - "@shared/*": [ "../shared/*" ], - "video.js": [ "node_modules/video.js/dist/alt/video.core.novtt" ], - "fs": [ "src/shims/noop" ], - "http": [ "src/shims/http" ], - "https": [ "src/shims/https" ], - "path": [ "src/shims/path" ], - "stream": [ "src/shims/noop" ], - "crypto": [ "src/shims/noop" ] - } + "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 } }