[MM-52696] Upgrade and clean up Desktop App dev dependencies (#2970)
* Upgrade to ESLint v8 * Upgrade TypeScript, api-types, react-intl * Remove unnecessary dependencies * Update to React 17.0.2 * npm audit fixes, remove storybook * Lock some packages * Remove nan patch * Remove some deprecated dependencies * Fix lint/type/tests * Merge'd * Fix bad use of spawn * Fix notarize * Fix afterpack, switch to tsc es2020 * Fix api types * Use @mattermost/eslint-plugin
This commit is contained in:
92
package.json
92
package.json
@@ -46,8 +46,8 @@
|
||||
"test:e2e:nobuild": "cross-env NODE_ENV=test npm-run-all test:e2e:build test:e2e:run",
|
||||
"test:e2e:build": "webpack-cli --config webpack.config.test.js",
|
||||
"test:e2e:build-performance": "webpack-cli --config webpack.config.performance.test.js",
|
||||
"test:e2e:run-performance": "electron-mocha -r @babel/register --reporter json --reporter-option output=./e2e/performance/perf-test-report.json dist/tests/e2e_bundle.js",
|
||||
"test:e2e:run": "electron-mocha -r @babel/register --reporter mochawesome dist/tests/e2e_bundle.js",
|
||||
"test:e2e:run-performance": "electron-mocha --reporter json --reporter-option output=./e2e/performance/perf-test-report.json dist/tests/e2e_bundle.js",
|
||||
"test:e2e:run": "electron-mocha --reporter mochawesome dist/tests/e2e_bundle.js",
|
||||
"test:e2e:send-report": "node ./e2e/save_report.js",
|
||||
"test:unit": "cross-env NODE_ENV=jest jest",
|
||||
"test:unit-ci": "cross-env NODE_ENV=jest jest",
|
||||
@@ -71,12 +71,12 @@
|
||||
"fix:js": "eslint --ignore-path .gitignore --ignore-pattern node_modules --quiet --ext .js --ext .jsx --ext .ts --ext .tsx . --fix",
|
||||
"check-build-config": "npm-run-all check-build-config:build check-build-config:run",
|
||||
"check-build-config:build": "babel ./src/common/config/buildConfig.ts -o ./dist/buildConfig.js",
|
||||
"check-build-config:run": "node -r @babel/register scripts/check_build_config.js",
|
||||
"check-build-config:run": "node scripts/check_build_config.js",
|
||||
"check-types": "tsc",
|
||||
"prune": "ts-prune",
|
||||
"mmjstool": "mmjstool",
|
||||
"i18n-extract": "npm run mmjstool -- i18n extract-desktop",
|
||||
"postinstall": "node scripts/postinstall.js && patch-package && electron-builder install-app-deps"
|
||||
"postinstall": "node scripts/postinstall.js && electron-builder install-app-deps"
|
||||
},
|
||||
"jest": {
|
||||
"clearMocks": true,
|
||||
@@ -135,36 +135,28 @@
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-s3": "3.445.0",
|
||||
"@aws-sdk/lib-storage": "3.445.0",
|
||||
"@babel/cli": "7.17.6",
|
||||
"@babel/core": "7.17.8",
|
||||
"@babel/plugin-proposal-class-properties": "7.16.7",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.17.3",
|
||||
"@babel/preset-env": "7.16.11",
|
||||
"@babel/preset-react": "7.16.7",
|
||||
"@babel/register": "7.17.7",
|
||||
"@babel/cli": "7.23.9",
|
||||
"@babel/preset-env": "7.24.0",
|
||||
"@babel/preset-react": "7.23.3",
|
||||
"@babel/preset-typescript": "7.23.3",
|
||||
"@electron/fuses": "1.6.0",
|
||||
"@electron/notarize": "2.3.0",
|
||||
"@electron/rebuild": "3.6.0",
|
||||
"@electron/universal": "1.3.1",
|
||||
"@mattermost/compass-icons": "0.1.32",
|
||||
"@mattermost/desktop-api": "*",
|
||||
"@storybook/addon-actions": "6.4.20",
|
||||
"@storybook/react": "6.4.20",
|
||||
"@types/auto-launch": "5.0.2",
|
||||
"@types/electron-devtools-installer": "2.2.1",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@mattermost/eslint-plugin": "1.1.0-0",
|
||||
"@types/auto-launch": "5.0.5",
|
||||
"@types/jest": "29.4.1",
|
||||
"@types/react": "17.0.43",
|
||||
"@types/react-beautiful-dnd": "13.0.0",
|
||||
"@types/react-beautiful-dnd": "13.1.8",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"@types/uuid": "^9.0.1",
|
||||
"@types/valid-url": "1.0.3",
|
||||
"@types/winreg": "1.2.31",
|
||||
"@typescript-eslint/eslint-plugin": "5.18.0",
|
||||
"@typescript-eslint/parser": "5.18.0",
|
||||
"@types/uuid": "9.0.8",
|
||||
"@types/valid-url": "1.0.7",
|
||||
"@types/winreg": "1.2.36",
|
||||
"7zip-bin": "5.1.1",
|
||||
"auto-launch": "5.0.5",
|
||||
"axios": "0.26.1",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-loader": "8.2.4",
|
||||
"axios": "1.6.7",
|
||||
"babel-loader": "9.1.3",
|
||||
"bootstrap": "4.6.1",
|
||||
"bootstrap-dark": "1.0.3",
|
||||
"chai": "4.3.6",
|
||||
@@ -173,61 +165,54 @@
|
||||
"cross-env": "7.0.3",
|
||||
"css-loader": "6.7.1",
|
||||
"electron": "29.0.0",
|
||||
"electron-builder": "24.12.0",
|
||||
"electron-builder": "24.13.3",
|
||||
"electron-connect": "0.6.3",
|
||||
"electron-context-menu": "3.6.1",
|
||||
"electron-extension-installer": "1.2.0",
|
||||
"electron-is-dev": "2.0.0",
|
||||
"electron-log": "4.4.8",
|
||||
"electron-mocha": "12.2.0",
|
||||
"electron-notarize": "1.2.2",
|
||||
"electron-updater": "5.2.1",
|
||||
"eslint": "7.29.0",
|
||||
"eslint-import-resolver-webpack": "0.13.2",
|
||||
"eslint-plugin-babel": "5.3.1",
|
||||
"eslint-plugin-cypress": "2.11.3",
|
||||
"eslint-plugin-header": "3.1.1",
|
||||
"eslint-plugin-import": "2.25.4",
|
||||
"eslint-plugin-mattermost": "github:mattermost/eslint-plugin-mattermost#5b0c972eacf19286e4c66221b39113bf8728a99e",
|
||||
"eslint-plugin-no-only-tests": "2.6.0",
|
||||
"eslint-plugin-react": "7.29.4",
|
||||
"eslint-plugin-react-hooks": "4.4.0",
|
||||
"electron-updater": "6.1.8",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-import-resolver-webpack": "0.13.8",
|
||||
"eslint-plugin-formatjs": "4.12.2",
|
||||
"eslint-plugin-no-only-tests": "3.1.0",
|
||||
"eslint-plugin-react": "7.34.0",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"fs-extra": "10.0.1",
|
||||
"html-webpack-plugin": "5.5.0",
|
||||
"jest": "29.4.1",
|
||||
"jest-junit": "13.1.0",
|
||||
"joi": "17.6.0",
|
||||
"mini-css-extract-plugin": "2.6.0",
|
||||
"mmjstool": "github:mattermost/mattermost-utilities#3b4506b0f6b14fbb402f9f8ef932370e459e3773",
|
||||
"mocha-circleci-reporter": "0.0.3",
|
||||
"mochawesome": "7.1.3",
|
||||
"nan": "2.18.0",
|
||||
"nan": "2.19.0",
|
||||
"node-abi": "3.56.0",
|
||||
"node-gyp": "10.0.1",
|
||||
"node-jq": "2.3.4",
|
||||
"node-jq": "4.3.1",
|
||||
"node-loader": "2.0.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"patch-package": "^8.0.0",
|
||||
"playwright": "1.42.0",
|
||||
"pretty-bytes": "6.0.0",
|
||||
"ps-node": "^0.1.6",
|
||||
"react": "16.14.0",
|
||||
"ps-node": "0.1.6",
|
||||
"react": "17.0.2",
|
||||
"react-beautiful-dnd": "13.1.0",
|
||||
"react-bootstrap": "1.6.4",
|
||||
"react-dom": "16.14.0",
|
||||
"react-intl": "5.20.10",
|
||||
"react-dom": "17.0.2",
|
||||
"react-intl": "6.6.2",
|
||||
"react-select": "5.2.2",
|
||||
"recursive-readdir": "^2.2.2",
|
||||
"recursive-readdir": "2.2.3",
|
||||
"robotjs": "0.6.0",
|
||||
"sass": "1.49.11",
|
||||
"sass-loader": "12.6.0",
|
||||
"semver": "7.3.5",
|
||||
"shebang-loader": "0.0.1",
|
||||
"semver": "7.6.0",
|
||||
"style-loader": "3.3.1",
|
||||
"ts-prune": "0.10.3",
|
||||
"typescript": "4.6.3",
|
||||
"typescript": "5.3.3",
|
||||
"uuid": "9.0.0",
|
||||
"valid-url": "1.0.9",
|
||||
"webpack": "5.71.0",
|
||||
"webpack": "5.90.3",
|
||||
"webpack-cli": "4.10.0",
|
||||
"webpack-dev-server": "4.8.0",
|
||||
"webpack-merge": "5.8.0",
|
||||
@@ -237,8 +222,5 @@
|
||||
"dependencies": {
|
||||
"macos-notification-state": "2.0.2",
|
||||
"windows-focus-assist": "1.3.0"
|
||||
},
|
||||
"overrides": {
|
||||
"@electron/universal": "1.3.1"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user