Skip to content

Commit

Permalink
composer.json 'scripts' can be string
Browse files Browse the repository at this point in the history
Fixes #90
  • Loading branch information
dzuelke committed Mar 22, 2024
1 parent 123696d commit 402755d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions composer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ pub struct ComposerBasePackage {
pub repositories: Option<Vec<ComposerRepository>>,
pub require: Option<HashMap<String, String>>,
pub require_dev: Option<HashMap<String, String>>,
#[serde_as(as = "Option<HashMap<_, OneOrMany<_, PreferOne>>>")]
pub scripts: Option<HashMap<String, Vec<String>>>,
pub scripts_descriptions: Option<HashMap<String, String>>,
pub source: Option<ComposerPackageSource>,
Expand Down

0 comments on commit 402755d

Please sign in to comment.