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 1fdc999 commit 4ac6af9Copy full SHA for 4ac6af9
tools/gitHooks/prettier.js
@@ -16,7 +16,7 @@
16
*/
17
18
const { resolve } = require('path');
19
-const { exec, spawn } = require('child-process-promise');
+const { spawn } = require('child-process-promise');
20
const fs = require('mz/fs');
21
const glob = require('glob');
22
const simpleGit = require('simple-git/promise');
@@ -101,7 +101,7 @@ async function doPrettier(changedFiles) {
101
}
102
103
const gitSpinner = ora(' Git staging prettier formatting changes.').start();
104
- await exec('git add -u .', { stdio: 'inherit' });
+ await git.add(targetFiles);
105
gitSpinner.stopAndPersist({
106
symbol: '▶️'
107
});
0 commit comments