Expose a subset of flipper-plugin to flipper server
Summary: Flipper plugins rely on 'flipper-plugin' package being accessible from 'global'. Expose a subset (without UI stuff) of flipper-plugin to server add-ons Reviewed By: mweststrate Differential Revision: D34400811 fbshipit-source-id: e0079ddfa67e66c1b24ab02d7682917ddfc84aaf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9449f61adb
commit
aec05533d7
24
desktop/flipper-plugin/src/server.tsx
Normal file
24
desktop/flipper-plugin/src/server.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
// Exports for server add-ons
|
||||
|
||||
import * as path from './utils/path';
|
||||
export {path};
|
||||
export * from './utils/uuid';
|
||||
export {safeStringify} from './utils/safeStringify';
|
||||
|
||||
export {
|
||||
sleep,
|
||||
timeout,
|
||||
createControlledPromise,
|
||||
ServerAddOn,
|
||||
ServerAddOnPluginConnection,
|
||||
FlipperServerForServerAddOn,
|
||||
} from 'flipper-common';
|
||||
Reference in New Issue
Block a user