mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* chore: test ESM version against Node.js 24 * update Node.js 24 runtime integration test snapshot * fix node 12 LTS snapshots * Update node.cjs Co-authored-by: Nicolò Ribaudo <[email protected]> * bump verdaccio to 6.1.2 * pin node to 22 * Revert "pin node to 22" This reverts commit 7f203513fd56dc941e9f6e2d296a5e21b06d8ba2. * remove unused openssl workaround * print npm logs on error * pin create-react-app node to 22 --------- Co-authored-by: Nicolò Ribaudo <[email protected]>
32 lines
704 B
Bash
Executable File
32 lines
704 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function cleanup {
|
|
echo "Cleaning up."
|
|
stopLocalRegistry
|
|
|
|
if [ -n "$GIT_E2E_SETUP" ]; then
|
|
cleanupE2Egit
|
|
fi
|
|
}
|
|
|
|
# Error messages are redirected to stderr
|
|
function handle_error {
|
|
echo "$(basename $0): ERROR! An error was encountered executing line $1." 1>&2;
|
|
cleanup
|
|
echo "Exiting with error." 1>&2;
|
|
cat $HOME/.npm/_logs/*.log
|
|
exit 1
|
|
}
|
|
|
|
function handle_exit {
|
|
cleanup
|
|
echo "Exiting without error." 1>&2;
|
|
exit
|
|
}
|
|
|
|
# Exit the script with a helpful error message when any error is encountered
|
|
trap 'set +x; handle_error $LINENO $BASH_COMMAND' ERR
|
|
|
|
# Cleanup before exit on any termination signal
|
|
trap 'set +x; handle_exit' SIGQUIT SIGTERM SIGINT SIGKILL SIGHUP
|