UNPKG

@jti/task

Version:

This package installs go-task in the `bin` folder.

19 lines (16 loc) 501 B
#!/usr/bin/env node const path = require('path'); const { execFileSync } = require('child_process'); const binFile = process.platform === 'win32' ? 'task.exe' : 'task' const binPath = path.join(__dirname, `bin/${binFile}`); try { execFileSync(binPath, process.argv.slice(2), { stdio: 'inherit', windowsHide: true, }) } catch (err) { // No need to emit errors here; they likely come from code Task runs. // But we still need to exit with an error when errors occur. process.exit(1) }