aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/scripts/npm-native-packages/template/bin/turbo
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:55 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:55 +0800
commitfc8c5fdce62fb229202659408798a7b6c98f6e8b (patch)
tree7554f80e50de4af6fd255afa7c21bcdd58a7af34 /cli/scripts/npm-native-packages/template/bin/turbo
parentdd84b9d64fb98746a230cd24233ff50a562c39c9 (diff)
downloadHydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.tar.gz
HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.zip
Diffstat (limited to 'cli/scripts/npm-native-packages/template/bin/turbo')
-rw-r--r--cli/scripts/npm-native-packages/template/bin/turbo15
1 files changed, 0 insertions, 15 deletions
diff --git a/cli/scripts/npm-native-packages/template/bin/turbo b/cli/scripts/npm-native-packages/template/bin/turbo
deleted file mode 100644
index 4557a07..0000000
--- a/cli/scripts/npm-native-packages/template/bin/turbo
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env node
-
-// Unfortunately even though npm shims "bin" commands on Windows with auto-
-// generated forwarding scripts, it doesn't strip the ".exe" from the file name
-// first. So it's possible to publish executables via npm on all platforms
-// except Windows. I consider this a npm bug.
-//
-// My workaround is to add this script as another layer of indirection. It'll
-// be slower because node has to boot up just to shell out to the actual exe,
-// but Windows is somewhat of a second-class platform to npm so it's the best
-// I can do I think.
-const path = require('path');
-const turbo_exe = path.join(__dirname, 'turbo.exe');
-const child_process = require('child_process');
-child_process.spawnSync(turbo_exe, process.argv.slice(2), { stdio: 'inherit' });