Fix symlinks resolution for plugin dependencies

Summary: Moved getWatchFolders script to flipper-pkg and used it from other packages. Script helps to resolve all the folders with package dependencies including symlinked folders in case if plugin is a part of yarn workspaces.

Reviewed By: mweststrate

Differential Revision: D21068373

fbshipit-source-id: 8691837fdb1aef333dab4c13d8758262838d36ee
This commit is contained in:
Anton Nikolaev
2020-04-17 05:15:55 -07:00
committed by Facebook GitHub Bot
parent a5e5ed5b7b
commit ebfd045328
12 changed files with 51 additions and 40 deletions

View File

@@ -14,7 +14,7 @@ import util from 'util';
import recursiveReaddir from 'recursive-readdir';
import pMap from 'p-map';
import {homedir} from 'os';
import getWatchFolders from './getWatchFolders';
import {getWatchFolders} from 'flipper-pkg';
import {default as getPlugins, PluginManifest, PluginInfo} from './getPlugins';
import startWatchPlugins from './startWatchPlugins';