Skip to content

Commit

Permalink
FIX Always put public resources in a public/ dir (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Dec 14, 2022
1 parent cb22983 commit f003b8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RecipeInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public function installLibrary(PackageInterface $package)
$projectPath = dirname(realpath(Factory::getComposerFile() ?? '') ?? '');

// Find public path
$candidatePublicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH;
$publicPath = is_dir($candidatePublicPath ?? '') ? $candidatePublicPath : $projectPath;
$publicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH;

// Copy project files to root
$name = $package->getName();
Expand Down

0 comments on commit f003b8d

Please sign in to comment.