16 lines
287 B
JavaScript
Executable File
16 lines
287 B
JavaScript
Executable File
#! /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);
|
|
}
|