[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: local execute for yarn v1 and 2+ compatibility (#544)

authored by

Vincent Taverna and committed by
GitHub
32e14085 64666259

+5 -3
+3 -1
app/utils/install-command.ts
··· 25 25 id: 'yarn', 26 26 label: 'yarn', 27 27 action: 'add', 28 - executeLocal: 'yarn', 28 + // For both yarn v1 and v2+ support 29 + // local exec defers to npx instead 30 + executeLocal: 'npx', 29 31 executeRemote: 'yarn dlx', 30 32 create: 'yarn create', 31 33 icon: 'i-simple-icons:yarn',
+1 -1
test/unit/app/utils/install-command.spec.ts
··· 292 292 it.each([ 293 293 ['npm', ['npx', 'eslint']], 294 294 ['pnpm', ['pnpm', 'exec', 'eslint']], 295 - ['yarn', ['yarn', 'eslint']], 295 + ['yarn', ['npx', 'eslint']], 296 296 ['bun', ['bunx', 'eslint']], 297 297 ['deno', ['deno', 'run', 'npm:eslint']], 298 298 ['vlt', ['vlt', 'x', 'eslint']],
+1 -1
test/unit/app/utils/run-command.spec.ts
··· 81 81 it.each([ 82 82 ['npm', ['npx', 'eslint']], 83 83 ['pnpm', ['pnpm', 'exec', 'eslint']], 84 - ['yarn', ['yarn', 'eslint']], 84 + ['yarn', ['npx', 'eslint']], 85 85 ['bun', ['bunx', 'eslint']], 86 86 ['deno', ['deno', 'run', 'npm:eslint']], 87 87 ['vlt', ['vlt', 'x', 'eslint']],