Rely on npm version rather than node version to determine which scanner to use. Fixes #46

This commit is contained in:
Sander Declerck 2025-09-15 09:39:41 +02:00
parent 5658eb04af
commit 4e3fe7b738
No known key found for this signature in database
5 changed files with 30 additions and 22 deletions

View file

@ -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) =>