Closed il3ven closed 1 year ago
PR #88 was reverted due to a bug which caused the GitHub actions to never stop. This PR fixes that bug by adding a -S flag.
-S
Without the -S flag, the --unhandled-rejections in #!/usr/bin/env -S node --unhandled-rejections=throw is not treated as an argument.
--unhandled-rejections
#!/usr/bin/env -S node --unhandled-rejections=throw
This behaviour is not present in macOS but is present in Linux.
After -S the behaviour for both the OSes should be similar. Tested it in 11/unhandledRejections branch of neume-network/data. Corresponding run: https://github.com/neume-network/data/actions/runs/3130990388/jobs/5081852773#step:9:1.
PR #88 was reverted due to a bug which caused the GitHub actions to never stop. This PR fixes that bug by adding a
-S
flag.Without the
-S
flag, the--unhandled-rejections
in#!/usr/bin/env -S node --unhandled-rejections=throw
is not treated as an argument.This behaviour is not present in macOS but is present in Linux.
After
-S
the behaviour for both the OSes should be similar. Tested it in 11/unhandledRejections branch of neume-network/data. Corresponding run: https://github.com/neume-network/data/actions/runs/3130990388/jobs/5081852773#step:9:1.