Merge branch 'master' into MM-50966-in-product-expansion

Этот коммит содержится в:
Conor Macpherson
2023-04-17 15:25:05 -04:00
родитель fa01ced588 3f022e728f
Коммит e32866795d
278 изменённых файлов: 6658 добавлений и 5307 удалений

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

@@ -1,22 +1,5 @@
This folder contains a number of packages intended to be built and shipped separately on NPM as well as a few legacy packages for internal use only (`reselect` and `mattermost-redux`). The following documentation only applies to the newer packages and not to the legacy ones.
### Working with subpackages
To interact with one or more packages in a workspace, such as to add a dependency or run a script, use the `--workspace` (or `--workspaces`) flag. This can be done when using built-in NPM commands such as `npm add` or when running scripts. This doesn't need to be done from inside the package.
```sh
# Add a dependency to a single package
npm add react --workspace=packages/apple
# Build multiple packages
npm run build --workspace=packages/banana --workspace=packages/carrot
# Clean all workspaces
npm run clean --workspaces
```
To install dependencies for a workspace, simply run `npm install` from the root of the source tree as you would do normally. Every packages' dependencies will be included in `node_modules` and in the `package-lock.json` which are shared across the repo.
### Importing a subpackage
Subpackages should be imported using their full name, both inside the web app and when installing them using `npm`. They should not be imported using a relative path, and the `src` folder shouldn't be necessary to include.

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

@@ -2440,6 +2440,7 @@ export default class Client4 {
ping = () => {
return this.doFetch<{
status: string;
ActiveSearchBackend: string;
}>(
`${this.getBaseRoute()}/system/ping?time=${Date.now()}`,
{method: 'get'},

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

@@ -7,7 +7,7 @@
"scripts": {
"build": "rollup -c",
"run": "rollup -c --watch",
"clean": "rm -rf dist node_modules tsconfig.tsbuildinfo"
"clean": "rm -rf dist node_modules tsconfig.tsbuildinfo .rollup.cache"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
@@ -53,7 +53,7 @@
"react": "^17.0.2",
"react-bootstrap": "github:mattermost/react-bootstrap#d821e2b1db1059bd36112d7587fd1b0912b27626",
"react-dom": "^17.0.2",
"react-intl": "^5.20.0",
"react-intl": "^6.3.2",
"shallow-equals": "^1.0.0",
"styled-components": "^5.3.5",
"tippy.js": "^6.3.7"

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

@@ -15,7 +15,9 @@
},
"typesVersions": {
">=3.1": {
"*": ["./lib/*.d.ts"]
"*": [
"./lib/*.d.ts"
]
}
},
"repository": {