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

@@ -12,7 +12,7 @@ import tmp from 'tmp';
import path from 'path';
import fs from 'fs-extra';
import {spawn} from 'promisify-child-process';
import getWatchFolders from '../static/getWatchFolders';
import {getWatchFolders} from 'flipper-pkg';
import getAppWatchFolders from './get-app-watch-folders';
import getPlugins from '../static/getPlugins';
import {