Skip to content

Commit

Permalink
Update packages/browser-repl/scripts/sync-to-compass.js
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Henningsen <[email protected]>
  • Loading branch information
lerouxb and addaleax authored Dec 9, 2024
1 parent 45946cb commit 4a7f4e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/browser-repl/scripts/sync-to-compass.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const compileAndCopy = debounce(
try {
child_process.execFileSync('npm', ['run', 'compile'], {
cwd: packageDir,
encoding: 'utf-8',
});
} catch (err) {
if (err.code) {
Expand All @@ -38,8 +39,8 @@ const compileAndCopy = debounce(
// Error contains any stdout and stderr from the child
const { stdout, stderr } = err;

console.log(stdout.toString());
console.error(stderr.toString());
console.log(stdout);
console.error(stderr);
}
}
fs.cpSync(libDir, destDir, { recursive: true });
Expand Down

0 comments on commit 4a7f4e9

Please sign in to comment.