expose isHeadlessBuild to flipper plugins
Reviewed By: passy Differential Revision: D46364476 fbshipit-source-id: bad584e3892cc0fb0fdaba0e8b3c79952596d34d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f9e633fad
commit
c01b6b9f16
@@ -50,6 +50,7 @@ export function baseFlipperLibImplementation(
|
||||
environmentInfo: {
|
||||
os: renderHost.serverConfig.environmentInfo.os,
|
||||
env: renderHost.serverConfig.env,
|
||||
isHeadlessBuild: renderHost.serverConfig.environmentInfo.isHeadlessBuild,
|
||||
},
|
||||
intern: {
|
||||
graphGet: (...args) =>
|
||||
|
||||
@@ -202,6 +202,7 @@ export interface FlipperLib {
|
||||
};
|
||||
environmentInfo: {
|
||||
os: EnvironmentInfo['os'];
|
||||
isHeadlessBuild: EnvironmentInfo['isHeadlessBuild'];
|
||||
env: Partial<Record<ENVIRONMENT_VARIABLES, string>>;
|
||||
};
|
||||
remoteServerContext: RemoteServerContext;
|
||||
|
||||
@@ -76,6 +76,7 @@ export function createMockFlipperLib(options?: StartPluginOptions): FlipperLib {
|
||||
platform: 'linux',
|
||||
},
|
||||
env: {},
|
||||
isHeadlessBuild: true,
|
||||
},
|
||||
intern: {
|
||||
graphGet: createStubFunction(),
|
||||
|
||||
Reference in New Issue
Block a user