Use QPL-managed QPLCore and PigeonClient (#1612)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/1612 * Use the QPL-managed QPLCore and PigeonClient. **Facebook:** js-shared/qpl and js-shared/pigeon-client are maintained by QPL in xplat/js-shared. I've updated the Metro config and tsconfig to allow the packages to be imported without breaking the open-source version. Reviewed By: passy Differential Revision: D24358369 fbshipit-source-id: 7f13d6c99d8ca6ebcd0e66bf0e5f25069370cce7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5731e3a155
commit
8a31e984b3
@@ -10,7 +10,8 @@
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import {getWatchFolders} from 'flipper-pkg-lib';
|
||||
import {appDir, pluginsDir} from './paths';
|
||||
import {appDir, pluginsDir, jsSharedDir} from './paths';
|
||||
import isFB from './isFB';
|
||||
|
||||
/**
|
||||
* Flipper references code from below plugins directly. Such directly referenced plugins
|
||||
@@ -30,6 +31,9 @@ export default async function getAppWatchFolders() {
|
||||
),
|
||||
);
|
||||
const watchFolders = ([] as string[]).concat(...getWatchFoldersResults);
|
||||
if (isFB) {
|
||||
watchFolders.push(jsSharedDir);
|
||||
}
|
||||
return watchFolders
|
||||
.filter((value, index, self) => self.indexOf(value) === index)
|
||||
.filter(fs.pathExistsSync);
|
||||
|
||||
Reference in New Issue
Block a user