Use the single type representing plugins
Summary: Use interface PluginDetails everywhere where plugins are handled and removed PluginDefinition type which was effectively a subset of PluginDetails Reviewed By: mweststrate Differential Revision: D21927456 fbshipit-source-id: 434ebeef955b922cc11757e78fbba8dec05f1060
This commit is contained in:
committed by
Facebook GitHub Bot
parent
907cb9e3cc
commit
db3f04a2d7
@@ -18,6 +18,14 @@ const EXAMPLE_PLUGIN = {
|
||||
name: 'test',
|
||||
version: '0.1',
|
||||
description: 'my test plugin',
|
||||
dir: '/plugins/test',
|
||||
specVersion: 2,
|
||||
source: 'src/index.ts',
|
||||
isDefault: false,
|
||||
main: 'lib/index.js',
|
||||
title: 'test',
|
||||
id: 'test',
|
||||
entry: '/plugins/test/lib/index.js',
|
||||
};
|
||||
|
||||
test('reduce registerInstalledPlugins, clear again', () => {
|
||||
|
||||
Reference in New Issue
Block a user