diff --git a/src/command/build.rs b/src/command/build.rs index bb3d0250..727fdad5 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 71084f96..1a0ee827 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 80cabe05..8621019f 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();