Load either installed or bundled version of plugin depending on which is newer
Summary: Load either installed or bundled version of plugin depending on which is newer. Reviewed By: mweststrate Differential Revision: D21858965 fbshipit-source-id: aa46eafe0b5137134fadad827749672441f2c9e5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e31ddbc648
commit
e65b355fb6
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import getPluginFolders from './getPluginFolders';
|
||||
import {getPluginSourceFolders} from './getPluginFolders';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
const watchmanconfigName = '.watchmanconfig';
|
||||
@@ -15,7 +15,7 @@ const watchmanconfigName = '.watchmanconfig';
|
||||
import path from 'path';
|
||||
|
||||
export default async function ensurePluginFoldersWatchable() {
|
||||
const pluginFolders = await getPluginFolders();
|
||||
const pluginFolders = await getPluginSourceFolders();
|
||||
for (const pluginFolder of pluginFolders) {
|
||||
if (!(await hasParentWithWatchmanConfig(pluginFolder))) {
|
||||
// If no watchman config found in the plugins folder or any its parent, we need to create it.
|
||||
|
||||
Reference in New Issue
Block a user