FIX Always put public resources in a public/ dir (#31)

This commit is contained in:
Guy Sartorelli 2022-12-14 15:44:45 +13:00 committed by GitHub
parent cb22983fa8
commit f003b8d56d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -185,8 +185,7 @@ class RecipeInstaller extends LibraryInstaller
$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();