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:
committed by
Facebook GitHub Bot
parent
a5e5ed5b7b
commit
ebfd045328
@@ -19,6 +19,12 @@ export default async function getPluginFolders(
|
||||
if (includeThirdparty) {
|
||||
pluginFolders.push(path.join(homedir(), '.flipper', 'thirdparty'));
|
||||
}
|
||||
if (process.env.FLIPPER_NO_EMBEDDED_PLUGINS === 'true') {
|
||||
console.log(
|
||||
'🥫 Skipping embedded plugins because "--no-embedded-plugins" flag provided',
|
||||
);
|
||||
return pluginFolders;
|
||||
}
|
||||
const flipperConfigPath = path.join(homedir(), '.flipper', 'config.json');
|
||||
if (await fs.pathExists(flipperConfigPath)) {
|
||||
const config = await fs.readJson(flipperConfigPath);
|
||||
|
||||
Reference in New Issue
Block a user