Skip to content

Commit dfb5160

Browse files
committed
removed listing all files from prettier transform
1 parent efc532b commit dfb5160

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/transform-script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { execSync } = require('child_process');
2-
const path = require('path');
32
const fs = require('fs');
43

54
const { getMainConfig, getPrettierConfigFile, getAbsolutePath } = require('./helpers');
@@ -17,7 +16,7 @@ paths.forEach(({ input, output }) => {
1716
}
1817

1918
let command = `babel ${inputAbsolutePath} -d ${outputAbsolutePath} --retain-lines`;
20-
command += ` && yarn prettier "${outputAbsolutePath}/**/*.js" --config ${prettierConfigFile} --write`;
19+
command += ` && yarn prettier "${outputAbsolutePath}/**/*.js" --config ${prettierConfigFile} --write --log-level warn`;
2120

2221
try {
2322
execSync(command, { stdio: 'inherit' });

0 commit comments

Comments
 (0)