local-cli: remove 'unbundle' naming in CLI (#21013)

Summary:
This also relink the require() onto `RamBundle.js` from Metro so we can remove `unbundle.js` from there completely.
Pull Request resolved: https://github.com/facebook/react-native/pull/21013

Reviewed By: hramos

Differential Revision: D9721443

Pulled By: jeanlauliac

fbshipit-source-id: 3e42ebde4cb2c735ef0934ba3b1e20f1054440df
This commit is contained in:
Jean Lauliac 2018-09-07 12:32:20 -07:00 committed by Facebook Github Bot
parent 888474f765
commit e8551520b5
3 changed files with 1 additions and 32 deletions

View File

@ -11,7 +11,7 @@
const bundleWithOutput = require('./bundle').withOutput;
const bundleCommandLineArgs = require('./bundleCommandLineArgs');
const outputUnbundle = require('metro/src/shared/output/unbundle');
const outputUnbundle = require('metro/src/shared/output/RamBundle');
/**
* Builds the bundle starting to look for dependencies at the given entry path.

View File

@ -1,30 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
const bundleCommandLineArgs = require('./bundleCommandLineArgs');
module.exports = {
name: 'unbundle',
description: 'Deprecated. Renamed to `ram-bundle`.',
func: () => {
throw new Error(
'The `unbundle` command has been renamed `ram-bundle` to better ' +
'represent the actual functionality. `ram` mean "Random Access ' +
'Module", this particular format of bundle. Functionality remained ' +
'unchanged.',
);
},
options: bundleCommandLineArgs.concat({
command: '--indexed-unbundle',
description: 'Deprecated. Renamed to `--indexed-ram-bundle`.',
default: false,
}),
};

View File

@ -41,7 +41,6 @@ const documentedCommands = [
require('./runAndroid/runAndroid'),
require('./library/library'),
require('./bundle/bundle'),
require('./bundle/unbundle'),
require('./bundle/ramBundle'),
require('./eject/eject'),
require('./link/link'),