Remove 'path' from plugins
Summary: 1. Add `path` replacement 1. Remove Node's path for all plugins but MobileBuildsPluginContainer (it is probably going to be moved to the server) Reviewed By: mweststrate Differential Revision: D32766327 fbshipit-source-id: e636f273842506e752b97cf1b28ce7ac51ce9a12
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6a4a867f74
commit
5610f8f058
@@ -10,7 +10,7 @@
|
||||
import type {CrashLog} from './index';
|
||||
import fs from 'fs-extra';
|
||||
import os from 'os';
|
||||
import path from 'path';
|
||||
import {path} from 'flipper-plugin';
|
||||
import {UNKNOWN_CRASH_REASON} from './crash-utils';
|
||||
|
||||
export function parseIosCrash(content: string) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import {path} from 'flipper-plugin';
|
||||
import {AppMatchPattern} from '../types';
|
||||
import {Device, getFlipperLib} from 'flipper-plugin';
|
||||
|
||||
|
||||
@@ -8,10 +8,9 @@
|
||||
*/
|
||||
|
||||
import {combineBase64Chunks} from '../chunks';
|
||||
import {TestUtils} from 'flipper-plugin';
|
||||
import {TestUtils, path} from 'flipper-plugin';
|
||||
import * as NetworkPlugin from '../index';
|
||||
import {assembleChunksIfResponseIsComplete} from '../chunks';
|
||||
import path from 'path';
|
||||
import {Base64} from 'js-base64';
|
||||
import * as fs from 'fs';
|
||||
import {promisify} from 'util';
|
||||
|
||||
@@ -8,12 +8,11 @@
|
||||
*/
|
||||
|
||||
import {readFile} from 'fs';
|
||||
import path from 'path';
|
||||
import {decodeBody, isTextual} from '../utils';
|
||||
import {ResponseInfo} from '../types';
|
||||
import {promisify} from 'util';
|
||||
import {readFileSync} from 'fs';
|
||||
import {TestUtils} from 'flipper-plugin';
|
||||
import {TestUtils, path} from 'flipper-plugin';
|
||||
import * as NetworkPlugin from '../index';
|
||||
|
||||
async function createMockResponse(
|
||||
|
||||
@@ -16,13 +16,13 @@ import {
|
||||
useValue,
|
||||
sleep,
|
||||
Toolbar,
|
||||
path,
|
||||
} from 'flipper-plugin';
|
||||
import React from 'react';
|
||||
import getPort from 'get-port';
|
||||
import {Button, message, Switch, Typography} from 'antd';
|
||||
import child_process from 'child_process';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import {DevToolsEmbedder} from './DevToolsEmbedder';
|
||||
|
||||
const DEV_TOOLS_NODE_ID = 'reactdevtools-out-of-react-node';
|
||||
|
||||
Reference in New Issue
Block a user