X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Ftsconfig.json;h=2345ca289b2314e31b0cf1c568dc4a5fba1d9e1e;hb=190ac9df7c95cdae5294596764afae7ce78d108d;hp=a8b8269a49ee66ea71d8008a59d2df512ce2d2a1;hpb=a840d396093ef968f9512862197ac166a1ff9921;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tsconfig.json b/client/tsconfig.json index a8b8269a4..2345ca289 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,66 +1,69 @@ { + "compileOnSave": false, "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", + "downlevelIteration": true, + "outDir": "./dist/out-tsc", "sourceMap": true, - "emitDecoratorMetadata": true, + "declaration": false, + "moduleResolution": "node", + "module": "es2020", "experimentalDecorators": true, - "removeComments": false, - "noImplicitAny": false + "noImplicitAny": true, + "noImplicitThis": true, + "suppressImplicitAnyIndexErrors":true, + "alwaysStrict": true, + "importHelpers": true, + "allowSyntheticDefaultImports": true, + "strictBindCallApply": true, + "target": "es2017", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "ES2021.Intl", + "es2018", + "es2017", + "es2016", + "es2015", + "dom" + ], + "baseUrl": "./", + "paths": { + "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" ] + } }, - "filesGlob": [ - "**/*.ts", - "!node_modules/**" + "files": [ + "src/polyfills.ts" ], - "exclude": [ - "node_modules", - "typings/main", - "typings/main.d.ts" + "include": [ + "src/main*.ts", + "src/**/*.d.ts", + "src/shims/*.ts" ], - "compileOnSave": false, - "files": [ - "app/app.component.ts", - "app/friends/friend.service.ts", - "app/friends/index.ts", - "app/login/index.ts", - "app/login/login.component.ts", - "app/shared/index.ts", - "app/shared/search/index.ts", - "app/shared/search/search-field.type.ts", - "app/shared/search/search.component.ts", - "app/shared/search/search.model.ts", - "app/shared/users/auth-status.model.ts", - "app/shared/users/auth.service.ts", - "app/shared/users/index.ts", - "app/shared/users/token.model.ts", - "app/shared/users/user.model.ts", - "app/videos/index.ts", - "app/videos/shared/index.ts", - "app/videos/shared/loader/index.ts", - "app/videos/shared/loader/loader.component.ts", - "app/videos/shared/pagination.model.ts", - "app/videos/shared/sort-field.type.ts", - "app/videos/shared/video.model.ts", - "app/videos/shared/video.service.ts", - "app/videos/video-add/index.ts", - "app/videos/video-add/video-add.component.ts", - "app/videos/video-list/index.ts", - "app/videos/video-list/video-list.component.ts", - "app/videos/video-list/video-miniature.component.ts", - "app/videos/video-list/video-sort.component.ts", - "app/videos/video-watch/index.ts", - "app/videos/video-watch/video-watch.component.ts", - "app/videos/video-watch/webtorrent.service.ts", - "main.ts", - "typings/globals/es6-shim/index.d.ts", - "typings/globals/jasmine/index.d.ts", - "typings/globals/jquery.fileupload/index.d.ts", - "typings/globals/jquery/index.d.ts", - "typings/globals/node/index.d.ts", - "typings/index.d.ts" + "exclude": [ + "../node_modules", + "../server", + "node_modules" ], - "atom": { - "rewriteTsconfig": true + "angularCompilerOptions": { + "strictInjectionParameters": true, + "fullTemplateTypeCheck": true, + "strictTemplates": true, + "enableI18nLegacyMessageIdFormat": false } }