replace imports of q with bluebird
update `package.json`
```
find src test -name '*.js' |
xargs perl -i -pe 'if (/require\(.[qQ].\)/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
find src test -name '*.js' |
xargs perl -i -pe 'if (/import [qQ] /) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
```
This commit is contained in:
@@ -20,7 +20,7 @@ limitations under the License.
|
||||
import VectorBasePlatform, {updateCheckStatusEnum} from './VectorBasePlatform';
|
||||
import dis from 'matrix-react-sdk/lib/dispatcher';
|
||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||
import q from 'q';
|
||||
import Promise from 'bluebird';
|
||||
import {remote, ipcRenderer} from 'electron';
|
||||
import rageshake from '../rageshake';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user