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 Jun 3, 2024
1 parent 3b80778 commit 8213285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildpacks/php/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Strings should be allowed as values in `scripts` object in `composer.json` ([#90](https://github.com/heroku/buildpacks-php/issues/90))

## [0.1.2] - 2023-10-24

### Changed
Expand Down
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 8213285

Please sign in to comment.