Run type check for all web app packages in CI (#22578)

* Fix incorrect usage of types pacakge

* Make platform packages properly expose their type definitions

* Have Boards, Channels, and Playbooks get types from platform packages properly

* Run type check for all web app packages in CI

* Fix incorrect job name
Этот коммит содержится в:
Harrison Healey
2023-03-23 10:10:52 -04:00
коммит произвёл GitHub
родитель 2eb5dac9b7
Коммит 1edbde8aa3
25 изменённых файлов: 58 добавлений и 80 удалений

Просмотреть файл

@@ -15,7 +15,7 @@
"check-style": "stylelint **/*.scss",
"check-style:fix": "npm run check-style -- --fix",
"check-style:fix:prettier": "prettier --write './src/**/*.scss'",
"check-types": "tsc",
"check-types": "tsc -b",
"check-types:fix": "npm run check-types -- --noEmit --fix",
"check": "npm run check-lint && npm run check-style",
"fix": "npm run check-lint:fix && npm run check-style:fix",

Просмотреть файл

@@ -18,25 +18,18 @@
"sourceMap": true,
"allowJs": true,
"resolveJsonModule": true,
"incremental": false,
"baseUrl": ".",
"outDir": "dist",
"noEmit": true,
"typeRoots": [ "./src/types", "./node_modules/@types"],
"paths": {
"@mattermost/types/*": ["../platform/packages/types/src/*"],
"@mattermost/client": ["../platform/client/src"],
"@mattermost/components": ["../platform/components/src"],
// "mattermost-redux/*": ["../channels/src/packages/mattermost-redux/src/*"],
// "reselect": ["../channels/src/packages/reselect/src"]
}
"composite": true
},
"include": [
"**/*"
"./i18n/*.json",
"./src/**/*",
],
"exclude": [
".git",
"!node_modules/@types",
"dist",
"references": [
{"path": "../platform/client"},
{"path": "../platform/types"}
]
}