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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2eb5dac9b7
Коммит
1edbde8aa3
@@ -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"}
|
||||
]
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user