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:
parent
3093f2d6fb
commit
a06bd84213
38 changed files with 38 additions and 38 deletions
|
@ -3,7 +3,7 @@ import ReactTestUtils from 'react-addons-test-utils';
|
|||
import ReactDOM from 'react-dom';
|
||||
import expect, {createSpy} from 'expect';
|
||||
import sinon from 'sinon';
|
||||
import Q from 'q';
|
||||
import Promise from 'bluebird';
|
||||
import * as testUtils from '../../../test-utils';
|
||||
import sdk from 'matrix-react-sdk';
|
||||
import UserSettingsStore from '../../../../src/UserSettingsStore';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue