diff --git a/packages/profiling-node/scripts/prune-profiler-binaries.js b/packages/profiling-node/scripts/prune-profiler-binaries.js index 22fc13ce28b6..a0c5ce7fc33d 100755 --- a/packages/profiling-node/scripts/prune-profiler-binaries.js +++ b/packages/profiling-node/scripts/prune-profiler-binaries.js @@ -62,6 +62,7 @@ const NODE_TO_ABI = { 16: '93', 18: '108', 20: '115', + 22: '127', }; if (NODE) { @@ -73,9 +74,13 @@ if (NODE) { NODE = NODE_TO_ABI['18']; } else if (NODE.startsWith('20')) { NODE = NODE_TO_ABI['20']; + } else if (NODE.startsWith('22')) { + NODE = NODE_TO_ABI['22']; } else { ARGV_ERRORS.push( - '❌ Sentry: Invalid node version passed as argument, please make sure --target_node is a valid major node version. Supported versions are 16, 18 and 20.', + `❌ Sentry: Invalid node version passed as argument, please make sure --target_node is a valid major node version. Supported versions are ${Object.keys( + NODE_TO_ABI, + ).join(', ')}.`, ); } }