Skip to content

Commit

Permalink
fix normalize path for main Box setting
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 2, 2024
1 parent c13e854 commit a124d55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Helper/BoxConfigurationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public function __construct(
$firstBin = current((array) ($decodedComposerJson['bin'] ?? []));
}


$main = $assocConfig[self::MAIN_KEY] ?? null;

// @link https://box-project.github.io/box/configuration/#main-main
Expand Down Expand Up @@ -240,6 +239,6 @@ private function retrieveMainScriptPath(array $assocConfig, ?string $firstBin):

private function normalizePath(string $file, string $basePath): string
{
return Path::makeAbsolute(trim($file), $basePath);
return Path::makeRelative(trim($file), $basePath);
}
}

0 comments on commit a124d55

Please sign in to comment.