mirror of
https://github.com/JellyApple102/tree-sitter-dfraw.git
synced 2024-11-24 15:09:20 +02:00
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
|
#!/usr/bin/env node
|
||
|
|
||
|
const path = require('path');
|
||
|
const spawn = require("child_process").spawn;
|
||
|
const executable = process.platform === 'win32'
|
||
|
? 'tree-sitter.exe'
|
||
|
: 'tree-sitter';
|
||
|
spawn(
|
||
|
path.join(__dirname, executable),
|
||
|
process.argv.slice(2),
|
||
|
{stdio: 'inherit'}
|
||
|
).on('close', process.exit)
|