From 884d9ab32bbca7a8ec5c7ee7d42cbde0e7e6babf Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 5 May 2026 19:38:29 +0900 Subject: refactor(core): replace ComposerConfig with typed Config struct Config uses serde with kebab-case field mapping; known properties are strongly-typed fields and unknown keys flow into an extra BTreeMap. resolve_references is moved to the new config module. --- crates/mozart/src/commands/exec.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'crates/mozart/src/commands/exec.rs') diff --git a/crates/mozart/src/commands/exec.rs b/crates/mozart/src/commands/exec.rs index f802721..9d79bee 100644 --- a/crates/mozart/src/commands/exec.rs +++ b/crates/mozart/src/commands/exec.rs @@ -117,12 +117,7 @@ pub async fn execute( fn resolve_bin_dir(working_dir: &Path, composer: &Composer) -> PathBuf { // bin-dir's `{$vendor-dir}` placeholder is already resolved by Composer::load. - let bin_dir = composer - .config() - .get("bin-dir") - .and_then(|v| v.as_str()) - .unwrap_or("vendor/bin"); - working_dir.join(bin_dir) + working_dir.join(&composer.config().bin_dir) } /// Returns a vec of (name, is_local) tuples for all available binaries. -- cgit v1.3.1