From b61ab05cf1d29bd81d9910361630219b9aa65dcc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 8 May 2026 22:22:39 +0900 Subject: fix(run-script): align with Composer's RunScriptCommand pipeline Extract script-event constants into mozart_core::script_events, fix dev_mode to `--dev || \!--no-dev` (PHP wins-on---dev), route the --list header to stderr with empty-list silent return, validate --timeout with ctype_digit semantics, and reorder execute() so the cannot-be-run check runs before requireComposer(). Drops the spurious --no-scripts short-circuit (Composer honors that flag in the dispatcher, not the command). --- crates/mozart-core/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/mozart-core/src/lib.rs') diff --git a/crates/mozart-core/src/lib.rs b/crates/mozart-core/src/lib.rs index 7b78280..d898b62 100644 --- a/crates/mozart-core/src/lib.rs +++ b/crates/mozart-core/src/lib.rs @@ -13,6 +13,7 @@ pub mod package_info; pub mod package_sorter; pub mod platform; pub mod repository_utils; +pub mod script_events; pub mod suggest; pub mod validation; pub mod version_bumper; -- cgit v1.3.1