Skip to content

Commit

Permalink
will squash before merge:
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus committed May 7, 2024
1 parent 070f805 commit 0da8a65
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions projects/js-toolkit/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const spawn = require('./util/spawn');
function compile(dir) {
try {
spawn('npx', ['tsc'], {cwd: dir});
}
catch (error) {
} catch (error) {
console.log(error);
throw new Error(
`Compilation failed for project: ${path.basename(dir)}`
);
Expand Down Expand Up @@ -54,8 +54,7 @@ async function build(dir) {
console.log('compile:', path.basename(dir));

compile(dir);
}
catch (error) {
} catch (error) {
abort(error.toString());
}
}
Expand All @@ -65,8 +64,7 @@ async function build(dir) {
for (const projectDir of getProjectDirectories()) {
await build(projectDir);
}
}
else {
} else {
build(path.resolve('.'));
}
})();

0 comments on commit 0da8a65

Please sign in to comment.