fixup! diigo-cache: RSS in diigo's export shape, from cached items
compare-export.ts runs main only under import.meta.main (Node's `if __name__ == "__main__"`), so importing it — say, from a test — runs nothing. Generated-by: Claude Opus 5.5
This commit is contained in:
1 parent
dfd9a3d1ef
commit
21505a5b8f
1 file changed
+2
-1
@@ -154,4 +154,5 @@ export function main(
|
||||
exit(0);
|
||||
}
|
||||
|
||||
main();
|
||||
// run only as a program, not when imported (e.g. by a test)
|
||||
if (import.meta.main) main();
|
||||
Reference in new issue
Block a user