Fix the deprecation message for meteor bundle

This commit is contained in:
Slava Kim
2014-10-16 16:18:39 -07:00
parent eb3355e52d
commit 25c3d39fb8
2 changed files with 14 additions and 3 deletions

View File

@@ -630,8 +630,12 @@ main.registerCommand(_.extend({ name: 'build' }, buildCommands),
// XXX COMPAT WITH 0.9.1.1
main.registerCommand(_.extend({ name: 'bundle', hidden: true }, buildCommands),
function (options) {
Console.stdout.write("WARNING: 'bundle' has been deprecated. " +
"Use 'build' instead.\n");
Console.stderr.write(
"This command has been deprecated in favor of 'meteor build', which allows you to\n" +
"build for multiple platforms and outputs a directory instead of a single\n" +
"tarball. See 'meteor help build' for more information.\n\n");
return buildCommand(_.extend(options, { _serverOnly: true }));
});

View File

@@ -230,7 +230,14 @@ This command can be useful to configure AVDs, HAX and update the SDK.
>>> bundle
Deprecated command. Use 'build' instead.
Deprecated command. Use 'build' instead.
Usage: meteor bundle <output_file.tar.gz>
Pack this project up into a tarball.
This command has been deprecated in favor of 'meteor build', which allows you to
build for multiple platforms and outputs a directory instead of a single
tarball. See 'meteor help build' for more information.
>>> build
Build this project for all platforms.