diff --git a/Cargo.toml b/Cargo.toml index a466c0f..7e20d1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "star-setup" -version = "0.4.9" +version = "0.5.0" edition = "2021" repository = "https://github.com/star-setup/core" description = "Lightweight CLI to clone, configure, and wire single or multi-repo ecosystems" diff --git a/README.md b/README.md index f1493f5..4868680 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A lightweight CLI to clone, configure, and wire single or multi-repo ecosystems. [![GitHub Release](https://img.shields.io/github/v/release/star-setup/core?include_prereleases&sort=semver)](https://github.com/star-setup/core/releases) [![CI](https://github.com/star-setup/core/actions/workflows/ci.yml/badge.svg)](https://github.com/star-setup/core/actions/workflows/ci.yml) -[![License: MIT](https://img.shields.io/github/license/star-setup/core)](./LICENSE) +[![License: MIT](https://img.shields.io/badge/License-MIT-green)](./LICENSE) > **Note:** This tool is primarily designed for my own projects and workflows. While it may work for other ecosystems, it is not guaranteed to work with all project structures or build configurations. diff --git a/src/build/npm/watch.rs b/src/build/npm/watch.rs index 6f1f3be..63bb6ac 100644 --- a/src/build/npm/watch.rs +++ b/src/build/npm/watch.rs @@ -20,7 +20,7 @@ fn get_watch_command( if scripts.get("watch").is_some() { Some(format!("npm --workspace=repos/{dir} run watch")) } else if scripts.get("build").is_some() { - Some(format!("npm --workspace=repos/{dir} run build -- --watch")) + Some(format!("npm --workspace=repos/{dir} run build ''--'' --watch")) } else { if flags.verbose { writeln!( diff --git a/tests/build/npm/watch.rs b/tests/build/npm/watch.rs index 3644897..48c33a2 100644 --- a/tests/build/npm/watch.rs +++ b/tests/build/npm/watch.rs @@ -52,7 +52,7 @@ fn test_generate_watch_scripts_falls_back_to_build() { let repos = vec!["user/game".to_string(), "user/lib1".to_string()]; generate_watch_scripts(tmp_path, &repos_path, &repos, io, make_flags()).unwrap(); let ps1 = read_to_string(tmp_path.join("watch.ps1")).unwrap(); - assert!(ps1.contains("run build -- --watch")); + assert!(ps1.contains("run build ''--'' --watch")); }); }