mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Rely on npm version rather than node version to determine which scanner to use. Fixes #46
This commit is contained in:
parent
5658eb04af
commit
4e3fe7b738
5 changed files with 30 additions and 22 deletions
|
|
@ -6,7 +6,6 @@ const scanner = commandArgumentScanner();
|
|||
|
||||
export function createPnpmPackageManager() {
|
||||
return {
|
||||
getWarningMessage: () => null,
|
||||
runCommand: (args) => runPnpmCommand(args, "pnpm"),
|
||||
isSupportedCommand: (args) =>
|
||||
matchesCommand(args, "add") ||
|
||||
|
|
@ -26,7 +25,6 @@ export function createPnpmPackageManager() {
|
|||
|
||||
export function createPnpxPackageManager() {
|
||||
return {
|
||||
getWarningMessage: () => null,
|
||||
runCommand: (args) => runPnpmCommand(args, "pnpx"),
|
||||
isSupportedCommand: () => true,
|
||||
getDependencyUpdatesForCommand: (args) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue