source: trip-planner-front/node_modules/esbuild-windows-64/bin/esbuild@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 758 bytes
Line 
1#!/usr/bin/env node
2
3// Unfortunately even though npm shims "bin" commands on Windows with auto-
4// generated forwarding scripts, it doesn't strip the ".exe" from the file name
5// first. So it's possible to publish executables via npm on all platforms
6// except Windows. I consider this a npm bug.
7//
8// My workaround is to add this script as another layer of indirection. It'll
9// be slower because node has to boot up just to shell out to the actual exe,
10// but Windows is somewhat of a second-class platform to npm so it's the best
11// I can do I think.
12const esbuild_exe = require.resolve('esbuild-windows-64/esbuild.exe');
13const child_process = require('child_process');
14child_process.spawnSync(esbuild_exe, process.argv.slice(2), { stdio: 'inherit' });
Note: See TracBrowser for help on using the repository browser.