Файл: vendor/laravel/framework/src/Illuminate/Support/NodePackageManagers/Pnpm.php
Строк: 54
<?php
namespace IlluminateSupportNodePackageManagers;
use IlluminateSupportContractsNodePackageManager;
class Pnpm implements NodePackageManager
{
/**
* Determine if the pnpm package manager is in use.
*
* @return bool
*/
public static function matches(): bool
{
return file_exists(getcwd().'/pnpm-lock.yaml');
}
/**
* Get the command to run a script using pnpm.
*
* @param string $command
* @return string
*/
public function getRunCommand(string $command): string
{
return "pnpm run {$command}";
}
/**
* Get the command to execute a package using pnpm.
*
* @param string $command
* @return string
*/
public function getExecCommand(string $command): string
{
return "pnpm dlx {$command}";
}
}