/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Support/NodePackageManagers/Bun.php
40 строк
892 B
Lucas Michot
[13.x] Remove deprecated `StaticCallOnNonStaticToInstanceCallRector` fixer rule (#60670)
06 июл 2026, 18:30
Не верифицирован
06 июл 2026, 18:30
fad91f6
Код
Авторство
О чём код?
<?php namespace Illuminate\Support\NodePackageManagers; use Illuminate\Support\Contracts\NodePackageManager; 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}"; } }