Файл: vendor/laravel/framework/src/Illuminate/Support/NodePackageManagers/Bun.php
Строк: 57
<?php
namespace IlluminateSupportNodePackageManagers;
use IlluminateSupportContractsNodePackageManager;
class Bun implements NodePackageManager
{
/**
* Determine if the Bun package manager is in use.
*
* @return bool
*/
public static function matches(): bool
{
return array_any(['bun.lock', 'bun.lockb'], fn ($lockFile) => file_exists(getcwd().'/'.$lockFile));
}
/**
* Get the command to run a script using Bun.
*
* @param string $command
* @return string
*/
public function getRunCommand(string $command): string
{
return "bun run {$command}";
}
/**
* Get the command to execute a package using Bun.
*
* @param string $command
* @return string
*/
public function getExecCommand(string $command): string
{
return "bunx {$command}";
}
}