Skip to content

Commit

Permalink
fix(jolicode#512): repack command work without .castor folder
Browse files Browse the repository at this point in the history
  • Loading branch information
arnolem authored Aug 31, 2024
1 parent 8dc9ad1 commit 3bdaa8e
Showing 1 changed file with 6 additions and 4 deletions.
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 3bdaa8e

Please sign in to comment.