We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76f2d13 commit 3e865cfCopy full SHA for 3e865cf
scripts/build.ts
@@ -220,13 +220,19 @@ await build({
220
useWasm: true,
221
minify: !args["no-minify"],
222
sourcemap: args.dev ?? false,
223
-}).andThrough(() => {
224
- if (args.dev) {
225
- return setupTestVault(
226
- outputFolder,
227
- "obsidian-github-stars",
228
- "./test-vault",
229
- );
230
- }
231
- return okAsync();
232
-});
+})
+ .andThrough(() => {
+ if (args.dev) {
+ return setupTestVault(
+ outputFolder,
+ "obsidian-github-stars",
+ "./test-vault",
+ );
+ }
+ return okAsync();
233
+ })
234
+ .andTee(() => console.log("Done!"))
235
+ .orElse((error) => {
236
+ console.error(`Build failed. Reason: ${error}`);
237
+ process.exit(1);
238
+ });
0 commit comments