Skip to content

Commit

Permalink
fix(indexer): incorrect path on Windows (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied authored and anfibiacreativa committed Nov 20, 2023
1 parent 8df69e4 commit 6cee9e6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions packages/indexer/bin/index-files.js
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);

0 comments on commit 6cee9e6

Please sign in to comment.