We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e89e5 commit cf003acCopy full SHA for cf003ac
1 file changed
scripts/clang-format.mjs
@@ -1,10 +1,9 @@
1
import child_process from 'child_process';
2
3
const args = ['--Werror', '-i', '--style=file', 'module.cc'];
4
-const cmd = `./node_modules/.bin/clang-format ${args.join(' ')}`;
5
6
try {
7
- child_process.execSync(cmd, {stdio: 'inherit'});
+ child_process.execFileSync('./node_modules/.bin/clang-format', args, {stdio: 'inherit'});
8
} catch (e) {
9
// This fails on linux_arm64
10
// eslint-disable-next-line no-console
0 commit comments