diff --git a/package.json b/package.json index 72a3a3665..f3174da83 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,7 @@ }, "main": "main.js", "scripts": { - "prepare": "patch-package", - "postinstall": "yarn custom-react-mentions-build && electron-builder install-app-deps && rimraf node_modules/dtrace-provider && husky install", - "custom-react-mentions-build": "cd node_modules/react-mentions && yarn install --node_modules=../node_modules && yarn build && rimraf node_modules/react node_modules/react-dom && cd ..", + "postinstall": "electron-builder install-app-deps && rimraf node_modules/dtrace-provider && husky install", "start": "cross-env NODE_APP_INSTANCE=$MULTI electron .", "start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod$MULTI electron .", "start-swarm-test": "cross-env NODE_ENV=swarm-testing NODE_APP_INSTANCE=$MULTI electron .", @@ -99,7 +97,7 @@ "react-emoji-render": "^1.2.4", "react-h5-audio-player": "^3.2.0", "react-intersection-observer": "^8.30.3", - "react-mentions": "https://github.com/Bilb/react-mentions", + "react-mentions": "^4.2.0", "react-portal": "^4.2.0", "react-qr-svg": "^2.2.1", "react-redux": "7.2.1", @@ -150,7 +148,7 @@ "@types/rc-slider": "^8.6.5", "@types/react": "16.8.5", "@types/react-dom": "16.8.2", - "@types/react-mentions": "^3.3.1", + "@types/react-mentions": "^4.1.0", "@types/react-mic": "^12.4.1", "@types/react-portal": "^4.0.2", "@types/react-redux": "7.1.9", @@ -196,7 +194,6 @@ "node-gyp": "3.8.0", "node-sass-import-once": "1.2.0", "nyc": "11.4.1", - "patch-package": "^6.2.2", "postinstall-prepare": "^1.0.1", "prettier": "1.19.0", "qs": "6.5.1", diff --git a/patches/@types+react-mentions+3.3.1.patch b/patches/@types+react-mentions+3.3.1.patch deleted file mode 100644 index 4044d6947..000000000 --- a/patches/@types+react-mentions+3.3.1.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/node_modules/@types/react-mentions/README.md b/node_modules/@types/react-mentions/README.md -deleted file mode 100644 -index 8f5cd37..0000000 ---- a/node_modules/@types/react-mentions/README.md -+++ /dev/null -@@ -1,16 +0,0 @@ --# Installation --> `npm install --save @types/react-mentions` -- --# Summary --This package contains type definitions for react-mentions (https://github.com/signavio/react-mentions). -- --# Details --Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-mentions. -- --### Additional Details -- * Last updated: Wed, 28 Oct 2020 03:29:22 GMT -- * Dependencies: [@types/react](https://npmjs.com/package/@types/react) -- * Global values: none -- --# Credits --These definitions were written by [Scott Willeke](https://github.com/activescott), and [Eugene Fedorenko](https://github.com/efedorenko). -diff --git a/node_modules/@types/react-mentions/index.d.ts b/node_modules/@types/react-mentions/index.d.ts -index 70256dd..bbba5cb 100644 ---- a/node_modules/@types/react-mentions/index.d.ts -+++ b/node_modules/@types/react-mentions/index.d.ts -@@ -33,6 +33,7 @@ export interface MentionsInputProps extends Omit