Skip to content

Commit 849aa4d

Browse files
martinbigiofacebook-github-bot-3
authored andcommitted
Move private-cli commands to local-cli
Summary: public We cannot remove `local-cli` because is referenced by the global cli explicitly. If we do so, people would have to upgrate this global thin cli which will cause some pain. So, lets move `private-cli` commands into `local-cli` instead. Reviewed By: frantic Differential Revision: D2571983 fb-gh-sync-id: 712c29430203660fb6f0d5f23813cb2a7156ee48
1 parent 24537e3 commit 849aa4d

33 files changed

Lines changed: 49 additions & 138 deletions

private-cli/src/bundle/__tests__/getAssetDestPathAndroid-test.js renamed to local-cli/bundle/__tests__/getAssetDestPathAndroid-test.js

File renamed without changes.

private-cli/src/bundle/__tests__/getAssetDestPathIOS-test.js renamed to local-cli/bundle/__tests__/getAssetDestPathIOS-test.js

File renamed without changes.

private-cli/src/bundle/__tests__/saveBundleAndMap-test.js renamed to local-cli/bundle/__tests__/saveBundleAndMap-test.js

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
const log = require('../util/log').out('bundle');
1212
const processBundle = require('./processBundle');
1313
const Promise = require('promise');
14-
const ReactPackager = require('../../../packager/react-packager');
14+
const ReactPackager = require('../../packager/react-packager');
1515
const saveBundleAndMap = require('./saveBundleAndMap');
1616

1717
function buildBundle(args, config) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
const buildBundle = require('./buildBundle');
1212
const bundleCommandLineArgs = require('./bundleCommandLineArgs');
13-
const parseCommandLine = require('../../../packager/parseCommandLine');
13+
const parseCommandLine = require('../../packager/parseCommandLine');
1414

1515
/**
1616
* Builds the bundle starting to look for dependencies at the given entry path.

private-cli/src/bundle/bundleCommandLineArgs.js renamed to local-cli/bundle/bundleCommandLineArgs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = [
2323
command: 'transformer',
2424
description: 'Specify a custom transformer to be used (absolute path)',
2525
type: 'string',
26-
default: require.resolve('../../../packager/transformer'),
26+
default: require.resolve('../../packager/transformer'),
2727
}, {
2828
command: 'dev',
2929
description: 'If false, warnings are disabled and the bundle is minified',
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)