Skip to content

Commit

Permalink
Fix: Do not sort scripts.auto-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 12, 2022
1 parent fe8681f commit ba54256
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ For a full diff see [`3.0.0...main`][3.0.0...main].
- Required `ergebnis/json-schema-validator:^4.0.0` ([#771]), by [@localheinz]
- Allowed configuring the `Normalizer\SchemaNormalizer` to exclude properties from being sorted ([#774]), by [@localheinz]

### Fixed

- Stopped sorting `scripts.auto-scripts` in `composer.json` ([#773]), by [@localheinz]

### Removed

- Started using `ergebnis/json` and removed `Json` and `Exception\InvalidJsonEncoded` ([#772]), by [@localheinz]
Expand Down
2 changes: 1 addition & 1 deletion src/Vendor/Composer/ComposerJsonNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(string $schemaUri)
$schemaUri,
new SchemaStorage(),
new SchemaValidator\SchemaValidator(),
Pointer\Specification::never(),
Pointer\Specification::equals(Pointer\JsonPointer::fromJsonString('/scripts/auto-scripts')),
),
new BinNormalizer(),
new PackageHashNormalizer(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"scripts": {
"auto-scripts": {
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"bazinga:js-translation:dump assets --merge-domains --format=json": "symfony-cmd",
"cache:clear": "symfony-cmd",
"doctrine:migrations:migrate -v": "symfony-cmd"
"doctrine:migrations:migrate -v": "symfony-cmd",
"bazinga:js-translation:dump assets --merge-domains --format=json": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
}
}
}

0 comments on commit ba54256

Please sign in to comment.