updated help message, replaced 'browser' with 'bundler'

master
ibaryshnikov 6 years ago committed by Ashley Williams
parent 398c8c7866
commit 788fca0f67
  1. 4
      src/command/build.rs
  2. 4
      src/command/mod.rs
  3. 4
      src/command/publish/mod.rs

@ -105,8 +105,8 @@ pub struct BuildOptions {
/// this flag will disable generating this TypeScript file. /// this flag will disable generating this TypeScript file.
pub disable_dts: bool, pub disable_dts: bool,
#[structopt(long = "target", short = "t", default_value = "browser")] #[structopt(long = "target", short = "t", default_value = "bundler")]
/// Sets the target environment. [possible values: browser, nodejs, web, no-modules] /// Sets the target environment. [possible values: bundler, nodejs, web, no-modules]
pub target: Target, pub target: Target,
#[structopt(long = "debug")] #[structopt(long = "debug")]

@ -57,8 +57,8 @@ pub enum Command {
#[structopt(name = "publish")] #[structopt(name = "publish")]
/// 🎆 pack up your npm package and publish! /// 🎆 pack up your npm package and publish!
Publish { Publish {
#[structopt(long = "target", short = "t", default_value = "browser")] #[structopt(long = "target", short = "t", default_value = "bundler")]
/// Sets the target environment. [possible values: browser, nodejs, no-modules] /// Sets the target environment. [possible values: bundler, nodejs, web, no-modules]
target: String, target: String,
/// The access level for the package to be published /// The access level for the package to be published

@ -41,8 +41,8 @@ pub fn publish(
.interact()?; .interact()?;
let out_dir = format!("{}/pkg", out_dir); let out_dir = format!("{}/pkg", out_dir);
let target = Select::new() let target = Select::new()
.with_prompt("target[default: browser]") .with_prompt("target[default: bundler]")
.items(&["browser", "nodejs", "no-modules"]) .items(&["bundler", "nodejs", "web", "no-modules"])
.default(0) .default(0)
.interact()? .interact()?
.to_string(); .to_string();

Loading…
Cancel
Save