fyn 3.1.9 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/fun.mjs CHANGED
@@ -7,7 +7,8 @@ const { fun } = await import("./index.mjs");
7
7
 
8
8
  try {
9
9
  await fun();
10
- process.exit(0);
10
+ // no argument, so a code the CLI parser set (e.g. 1 on a parse error) is kept
11
+ process.exit();
11
12
  } catch (err) {
12
13
  console.error(err);
13
14
  process.exit(1);
package/bin/fyn.mjs CHANGED
@@ -7,7 +7,8 @@ const { run } = await import("./index.mjs");
7
7
 
8
8
  try {
9
9
  await run();
10
- process.exit(0);
10
+ // no argument, so a code the CLI parser set (e.g. 1 on a parse error) is kept
11
+ process.exit();
11
12
  } catch (err) {
12
13
  console.error(err);
13
14
  process.exit(1);