neume-network / core

A socially-scalable music NFT indexer.
https://neume.network
GNU General Public License v3.0
26 stars 11 forks source link

re: add unhandledRejections flag to node #91

Closed il3ven closed 1 year ago

il3ven commented 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.

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.