Remove nested package.json files

Reviewed By: cpojer

Differential Revision: D7097285

fbshipit-source-id: 66b107632e3b84edf4f2c099b03ca590a7c6bb7b
This commit is contained in:
Rafael Oleza 2018-02-28 04:07:24 -08:00 committed by Facebook Github Bot
parent f5bb45ffdd
commit 2f98a6ee61
7 changed files with 10 additions and 9 deletions

View File

@ -13,7 +13,11 @@
const Generator = require('../Generator');
const {toSegmentTuple, fromRawMappings, toBabelSegments} = require('..');
const {
toSegmentTuple,
fromRawMappings,
toBabelSegments,
} = require('../source-map');
describe('flattening mappings / compacting', () => {
it('flattens simple mappings', () => {

View File

@ -1 +0,0 @@
{"main": "source-map.js"}

View File

@ -1 +0,0 @@
{"main":"node-haste.js"}

View File

@ -14,7 +14,7 @@ jest
.mock('jest-worker', () => ({}))
.mock('metro-minify-uglify')
.mock('crypto')
.mock('../symbolicate', () => ({
.mock('../symbolicate/symbolicate', () => ({
createWorker: jest.fn().mockReturnValue(jest.fn()),
}))
.mock('../../Bundler')
@ -39,7 +39,7 @@ describe('processRequest', () => {
Bundler = require('../../Bundler');
Server = require('../');
getAsset = require('../../Assets').getAsset;
symbolicate = require('../symbolicate');
symbolicate = require('../symbolicate/symbolicate');
Serializers = require('../../DeltaBundler/Serializers/Serializers');
DeltaBundler = require('../../DeltaBundler');
});

View File

@ -24,7 +24,7 @@ const nullthrows = require('fbjs/lib/nullthrows');
const parseCustomTransformOptions = require('../lib/parseCustomTransformOptions');
const parsePlatformFilePath = require('../node-haste/lib/parsePlatformFilePath');
const path = require('path');
const symbolicate = require('./symbolicate');
const symbolicate = require('./symbolicate/symbolicate');
const url = require('url');
const {getAsset} = require('../Assets');
@ -46,7 +46,7 @@ import type {
import type {CacheStore} from 'metro-cache';
import type {MetroSourceMap} from 'metro-source-map';
import type {TransformCache} from '../lib/TransformCaching';
import type {Symbolicate} from './symbolicate';
import type {Symbolicate} from './symbolicate/symbolicate';
import type {AssetData} from '../Assets';
import type {PostProcessModules} from '../DeltaBundler';
import type {TransformedCode} from '../JSTransformer/worker';

View File

@ -13,7 +13,7 @@ jest.mock('child_process').mock('net');
const EventEmitter = require('events');
const {Readable} = require('stream');
const {createWorker} = require('../');
const {createWorker} = require('../symbolicate');
let childProcess, socketResponse, socket, worker;

View File

@ -1 +0,0 @@
{"main": "./symbolicate.js"}