Skip to content

Commit

Permalink
add npm: protocol to deno runs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Nov 24, 2024
1 parent 83887b3 commit 8183d57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/lib/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ async function runAddon({ addon, multiple, workspace }: RunAddon): Promise<strin
}
},
execute: async (commandArgs, stdio) => {
// Deno requires the package to be prepended with the `npm:` protocol
if (workspace.packageManager === 'deno') commandArgs[0] = `npm:${commandArgs[0]}`;

const { command, args } = resolveCommand(workspace.packageManager, 'execute', commandArgs)!;

const addonPrefix = multiple ? `${addon.id}: ` : '';
Expand Down

0 comments on commit 8183d57

Please sign in to comment.