-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(indexer): incorrect path on Windows (#141)
- Loading branch information
1 parent
8df69e4
commit 6cee9e6
Showing
1 changed file
with
1 addition
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
#!/usr/bin/env node | ||
import process from 'node:process'; | ||
import { execSync } from 'node:child_process'; | ||
import { run } from '../dist/lib/cli.js'; | ||
|
||
if ((process.env.NODE_OPTIONS ?? '').includes('--no-warnings')) { | ||
run(process.argv); | ||
} else { | ||
// Silence experimental warnings | ||
try { | ||
execSync(process.argv.join(' '), { | ||
stdio: 'inherit', | ||
env: { | ||
...process.env, | ||
NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ''} --no-warnings`, | ||
}, | ||
}); | ||
} catch { | ||
// Do nothing | ||
} | ||
} | ||
run(process.argv); |