You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 287B

123456789101112131415
  1. #! /usr/bin/env node
  2. 'use strict';
  3. const yarnOrNpm = require('../index');
  4. // Execute the command
  5. try {
  6. const status = yarnOrNpm.spawn.sync(
  7. process.argv.slice(2),
  8. { stdio: 'inherit' }
  9. ).status
  10. process.exit(status);
  11. } catch (err) {
  12. console.log(err);
  13. process.exit(1);
  14. }