Skip to content

Commit 4a7f4e9

Browse files
lerouxbaddaleax
andauthored
Update packages/browser-repl/scripts/sync-to-compass.js
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 45946cb commit 4a7f4e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/browser-repl/scripts/sync-to-compass.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const compileAndCopy = debounce(
2828
try {
2929
child_process.execFileSync('npm', ['run', 'compile'], {
3030
cwd: packageDir,
31+
encoding: 'utf-8',
3132
});
3233
} catch (err) {
3334
if (err.code) {
@@ -38,8 +39,8 @@ const compileAndCopy = debounce(
3839
// Error contains any stdout and stderr from the child
3940
const { stdout, stderr } = err;
4041

41-
console.log(stdout.toString());
42-
console.error(stderr.toString());
42+
console.log(stdout);
43+
console.error(stderr);
4344
}
4445
}
4546
fs.cpSync(libDir, destDir, { recursive: true });

0 commit comments

Comments
 (0)