Support installation of plugins packaged as vsix
Summary: This is experimental feature to prove that vsix format can be used to publish plugins. Turns out there are almost no differences of vsix in comparison with npm packages. Reviewed By: jknoxville Differential Revision: D19770476 fbshipit-source-id: b3c62e7f2a4e8000113b9f1651e8657eb3e0d6fa
This commit is contained in:
committed by
Facebook Github Bot
parent
47b63f9543
commit
e42e44c324
@@ -74,12 +74,18 @@ const argv = yargs
|
||||
|
||||
const {config, configPath, flipperDir} = setup(argv);
|
||||
|
||||
const skipLoadingEmbeddedPlugins = process.env.FLIPPER_NO_EMBEDDED_PLUGINS;
|
||||
|
||||
const pluginPaths = config.pluginPaths
|
||||
.concat(
|
||||
.concat([
|
||||
path.join(configPath, '..', 'thirdparty'),
|
||||
path.join(__dirname, '..', 'src', 'plugins'),
|
||||
path.join(__dirname, '..', 'src', 'fb', 'plugins'),
|
||||
)
|
||||
...(skipLoadingEmbeddedPlugins
|
||||
? []
|
||||
: [
|
||||
path.join(__dirname, '..', 'src', 'plugins'),
|
||||
path.join(__dirname, '..', 'src', 'fb', 'plugins'),
|
||||
]),
|
||||
])
|
||||
.map(expandTilde)
|
||||
.filter(fs.existsSync);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user