Skip to content

Commit

Permalink
chore(composer.json): Update fix-namespace-prefix script
Browse files Browse the repository at this point in the history
- Updated the fix-namespace-prefix script in composer.json to use the new method Guanguans\MonorepoBuilderWorker\Support\EnvironmentChecker::fixNamespacePrefix
- Replaced the @release-patch-dry-run command with the new method
  • Loading branch information
guanguans committed Jan 7, 2024
1 parent a3554e3 commit 76b126c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"@md-lint",
"@lint",
"@style-lint",
"@fix-namespace-prefix",
"@release-patch-dry-run",
"@psalm",
"@test"
],
Expand All @@ -160,7 +160,7 @@
"doctum": "@php ./vendor/bin/doctum.php update doctum.php --ansi -v",
"facades-lint": "@facades-update -- --lint",
"facades-update": "/usr/local/opt/php@8.1/bin/php -f ./bin/facades.php",
"fix-namespace-prefix": "@release-patch-dry-run",
"fix-namespace-prefix": "Guanguans\\MonorepoBuilderWorker\\Support\\EnvironmentChecker::fixNamespacePrefix",
"infection": "@php ./vendor/bin/infection --test-framework=pest --show-mutations --threads=4 --ansi -v",
"json-lint": "@php ./vendor/bin/jsonlint *.json .*rc",
"lint": [
Expand Down
2 changes: 1 addition & 1 deletion src/Support/EnvironmentChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static function check($worker): void
}
}

protected static function fixNamespacePrefix(): void
public static function fixNamespacePrefix(): void
{
$yearMonth = date('Ym');
while ($yearMonth >= 202310 && ! class_exists(sprintf('MonorepoBuilderPrefix%s\Symfony\Component\Console\Style\SymfonyStyle', $yearMonth))) {
Expand Down

0 comments on commit 76b126c

Please sign in to comment.