Merge pull request #34 from AikidoSec/pnpm-install-coverage

Add coverage for pnpm install command, fixes #32
This commit is contained in:
Sander Declerck 2025-09-09 12:55:38 +02:00 committed by GitHub
commit 0f90ac2a2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -46,7 +46,7 @@ function writeHelp() {
ui.writeInformation( ui.writeInformation(
`- ${chalk.cyan( `- ${chalk.cyan(
"safe-chain setup" "safe-chain setup"
)}: This will setup your shell to wrap safe-chain around npm, npx and yarn.` )}: This will setup your shell to wrap safe-chain around npm, npx, yarn, pnpm and pnpx.`
); );
ui.writeInformation( ui.writeInformation(
`- ${chalk.cyan( `- ${chalk.cyan(

View file

@ -13,6 +13,7 @@ export function createPnpmPackageManager() {
matchesCommand(args, "update") || matchesCommand(args, "update") ||
matchesCommand(args, "upgrade") || matchesCommand(args, "upgrade") ||
matchesCommand(args, "up") || matchesCommand(args, "up") ||
matchesCommand(args, "install") ||
// dlx does not always come in the first position // dlx does not always come in the first position
// eg: pnpm --package=yo --package=generator-webapp dlx yo webapp // eg: pnpm --package=yo --package=generator-webapp dlx yo webapp
// documentation: https://pnpm.io/cli/dlx#--package-name // documentation: https://pnpm.io/cli/dlx#--package-name