Skip to content

Commit

Permalink
fix(#512): repack command work without .castor folder
Browse files Browse the repository at this point in the history
  • Loading branch information
arnolem authored and lyrixx committed Sep 3, 2024
1 parent 2e3cc97 commit 2e9261c
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 2e9261c

Please sign in to comment.