UNPKG

yarpm

Version:

CLI tool to run npm scripts with either npm, pnpm or yarn, depending on how it was started

11 lines (8 loc) 207 B
#!/usr/bin/env node 'use strict'; const commandExists = require('command-exists'); const run = require('./bin-executor').run; commandExists('pnpm').then( () => run({ npmPath: 'pnpm' }), () => run() );