system_assignation/node_modules/yarn-or-npm/bin/index.js

16 lines
287 B
JavaScript
Raw Normal View History

2022-03-24 09:22:39 -04:00
#! /usr/bin/env node
'use strict';
const yarnOrNpm = require('../index');
// Execute the command
try {
const status = yarnOrNpm.spawn.sync(
process.argv.slice(2),
{ stdio: 'inherit' }
).status
process.exit(status);
} catch (err) {
console.log(err);
process.exit(1);
}