mirror of https://github.com/status-im/metro.git
Remove nested package.json files
Reviewed By: cpojer Differential Revision: D7097285 fbshipit-source-id: 66b107632e3b84edf4f2c099b03ca590a7c6bb7b
This commit is contained in:
parent
f5bb45ffdd
commit
2f98a6ee61
|
@ -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', () => {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"main": "source-map.js"}
|
|
@ -1 +0,0 @@
|
|||
{"main":"node-haste.js"}
|
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"main": "./symbolicate.js"}
|
Loading…
Reference in New Issue