From 788fca0f67237ebe5f37f281d95e3bfebb22a7c9 Mon Sep 17 00:00:00 2001 From: ibaryshnikov Date: Sat, 4 May 2019 17:46:46 +0300 Subject: [PATCH] updated help message, replaced 'browser' with 'bundler' --- src/command/build.rs | 4 ++-- src/command/mod.rs | 4 ++-- src/command/publish/mod.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/command/build.rs b/src/command/build.rs index faaacbd4..bc1c44a8 100644 --- a/src/command/build.rs +++ b/src/command/build.rs @@ -105,8 +105,8 @@ pub struct BuildOptions { /// this flag will disable generating this TypeScript file. pub disable_dts: bool, - #[structopt(long = "target", short = "t", default_value = "browser")] - /// Sets the target environment. [possible values: browser, nodejs, web, no-modules] + #[structopt(long = "target", short = "t", default_value = "bundler")] + /// Sets the target environment. [possible values: bundler, nodejs, web, no-modules] pub target: Target, #[structopt(long = "debug")] diff --git a/src/command/mod.rs b/src/command/mod.rs index a5563070..61e2f85c 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -57,8 +57,8 @@ pub enum Command { #[structopt(name = "publish")] /// 🎆 pack up your npm package and publish! Publish { - #[structopt(long = "target", short = "t", default_value = "browser")] - /// Sets the target environment. [possible values: browser, nodejs, no-modules] + #[structopt(long = "target", short = "t", default_value = "bundler")] + /// Sets the target environment. [possible values: bundler, nodejs, web, no-modules] target: String, /// The access level for the package to be published diff --git a/src/command/publish/mod.rs b/src/command/publish/mod.rs index 98b70017..d6d790dd 100644 --- a/src/command/publish/mod.rs +++ b/src/command/publish/mod.rs @@ -41,8 +41,8 @@ pub fn publish( .interact()?; let out_dir = format!("{}/pkg", out_dir); let target = Select::new() - .with_prompt("target[default: browser]") - .items(&["browser", "nodejs", "no-modules"]) + .with_prompt("target[default: bundler]") + .items(&["bundler", "nodejs", "web", "no-modules"]) .default(0) .interact()? .to_string();