Files
Harrison Healey 86aad9d0a5 Add platform/mattermost-redux package for publishing (#30020)
* Replace key-mirror with mattermost-redux/utils/key_mirror

At some point, we made our own version for mattermost-redux with proper type definitions
but we seem to have forgotten to use that everywhere in the web app.

* Remove Rudder reference from mattermost-redux

* Remove Giphy API from mattermost-redux

* Remove mattermost-webapp refernces from Client and Types packages

* Create platform/mattermost-redux without moving its source files

* Don't build mattermost-redux automatically

* Copy changes to package.json from platform/mattermost-redux to other packages

The changes to the typesVersions and exports fields are to make it
easier for tooling to know to make it so that importing a folder imports
the index file inside that folder since that's not standard to all
CommonJS packages.

The added type field is just a good pracice.

* Explicitly type re-exported selectors

For some reason, the types generated by the previous version of this didn't work
when mattermost-redux was built as a standalone package. Explicitly typing these
is a bit more verbose, but it fixes things.

* Fix import loop in selectors introduced by last commit

* Update package versions to 10.6.0

* Add explicit dependencies to mattermost-redux package

* Remove check and run scripts from mattermost-redux package

* Revert changes to NOTICE.txt
2025-02-04 22:26:46 +00:00

60 строки
1.5 KiB
JSON

{
"name": "mattermost-redux",
"version": "10.6.0",
"description": "Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client",
"keywords": [
"mattermost"
],
"homepage": "https://github.com/mattermost/mattermost/tree/master/webapp/platform/mattermost-redux#readme",
"license": "MIT",
"type": "commonjs",
"files": [
"lib"
],
"exports": {
"./*": [
"./lib/*/index.js",
"./lib/*.js"
]
},
"typesVersions": {
">=3.1": {
"*": [
"./lib/*.d.ts",
"./lib/*/index.d.ts"
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/mattermost/mattermost.git",
"directory": "webapp/platform/mattermost-redux"
},
"dependencies": {
"@mattermost/client": "10.6.0",
"@mattermost/types": "10.6.0",
"@redux-devtools/extension": "^3.2.3",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.38",
"redux": "^4.2.0",
"redux-batched-actions": "^0.5.0",
"redux-thunk": "^2.4.2",
"serialize-error": "^11.0.3",
"shallow-equals": "^1.0.0",
"timezones.json": "^1.7.1"
},
"peerDependencies": {
"typescript": "^4.3.0 || ^5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"scripts": {
"build": "tsc --build --verbose",
"postbuild": "cp ../../channels/src/packages/mattermost-redux/src/selectors/create_selector/index.d.ts lib/selectors/create_selector/index.d.ts",
"clean": "rm -rf lib node_modules *.tsbuildinfo"
}
}