Skip to content

Commit 4ac6af9

Browse files
committed
revert prettier hook
1 parent 1fdc999 commit 4ac6af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gitHooks/prettier.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
const { resolve } = require('path');
19-
const { exec, spawn } = require('child-process-promise');
19+
const { spawn } = require('child-process-promise');
2020
const fs = require('mz/fs');
2121
const glob = require('glob');
2222
const simpleGit = require('simple-git/promise');
@@ -101,7 +101,7 @@ async function doPrettier(changedFiles) {
101101
}
102102

103103
const gitSpinner = ora(' Git staging prettier formatting changes.').start();
104-
await exec('git add -u .', { stdio: 'inherit' });
104+
await git.add(targetFiles);
105105
gitSpinner.stopAndPersist({
106106
symbol: '▶️'
107107
});

0 commit comments

Comments
 (0)