From ea1f4657e3d2c140745d94e8ff16a4867abfdc2c Mon Sep 17 00:00:00 2001 From: Laurent Christophe Date: Fri, 17 Feb 2023 14:39:39 +0100 Subject: [PATCH] feat: parse package invocation with yarn --- components/command/node/package.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/command/node/package.mjs b/components/command/node/package.mjs index 316e50820..beb02ed28 100644 --- a/components/command/node/package.mjs +++ b/components/command/node/package.mjs @@ -44,11 +44,15 @@ const findScriptIndex = (tokens, index) => { const executables = [ ["node"], ["npm", "exec"], - ["npm", "x"], - ["npx"], ["npm.cmd", "exec"], + ["npm", "x"], ["npm.cmd", "x"], + ["npx"], ["npx.cmd"], + ["yarn", "exec"], + ["yarn.cmd", "exec"], + ["yarn", "node"], + ["yarn.cmd", "node"], [], ];