Skip to content

Commit ba88b7b

Browse files
committed
create commands dir; move generator to tools
1 parent 2090561 commit ba88b7b

File tree

218 files changed

+148
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+148
-147
lines changed

packages/cli/src/__mocks__/beeper.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/cli/src/cliEntry.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import commander from 'commander';
1313
import minimist from 'minimist';
1414
import path from 'path';
1515
import type { CommandT, ContextT } from './tools/types.flow';
16-
import getCommands from './tools/getCommands';
1716
import getLegacyConfig from './tools/getLegacyConfig';
18-
import init from './init/init';
19-
import assertRequiredOptions from './util/assertRequiredOptions';
20-
import logger from './util/logger';
17+
import { getCommands } from './commands';
18+
import init from './commands/init/init';
19+
import assertRequiredOptions from './tools/assertRequiredOptions';
20+
import logger from './tools/logger';
2121
import pkg from '../package.json';
2222

2323
commander

packages/cli/src/bundle/buildBundle.js renamed to packages/cli/src/commands/bundle/buildBundle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import Server from 'metro/src/Server';
1212
import outputBundle from 'metro/src/shared/output/bundle';
1313
import path from 'path';
1414
import type { CommandLineArgs } from './bundleCommandLineArgs';
15-
import type { ContextT } from '../tools/types.flow';
15+
import type { ContextT } from '../../tools/types.flow';
1616
import saveAssets from './saveAssets';
17-
import loadMetroConfig from '../util/loadMetroConfig';
18-
import logger from '../util/logger';
17+
import loadMetroConfig from '../../tools/loadMetroConfig';
18+
import logger from '../../tools/logger';
1919

2020
async function buildBundle(
2121
args: CommandLineArgs,
File renamed without changes.

0 commit comments

Comments
 (0)