Skip to content

Commit

Permalink
Merge pull request #513 from arnolem/patch-1
Browse files Browse the repository at this point in the history
fix(#512): repack command work without .castor folder
  • Loading branch information
lyrixx authored Sep 3, 2024
2 parents 2e3cc97 + 2e9261c commit 2fd7484
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## 0.18.1 (2024-09-03)

* Fix BC layer for `fingerprint()` function
* Fix repack command work without .castor folder

## 0.18.0 (2024-08-27)

Expand Down
10 changes: 6 additions & 4 deletions src/Console/Command/RepackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ class RepackedApplication extends Application
];

// Add .castor directory
$boxConfig['directories'] = [
'.castor',
...$boxConfig['directories'] ?? [],
];
if (file_exists('.castor')) {
$boxConfig['directories'] = [
'.castor',
...$boxConfig['directories'] ?? [],
];
}

// Force discovery
$boxConfig['force-autodiscovery'] = true;
Expand Down

0 comments on commit 2fd7484

Please sign in to comment.