Skip to content

Commit 2c3c24a

Browse files
committed
add node 22 to prune script
1 parent 973ef9c commit 2c3c24a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/profiling-node/scripts/prune-profiler-binaries.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const NODE_TO_ABI = {
6262
16: '93',
6363
18: '108',
6464
20: '115',
65+
22: '127',
6566
};
6667

6768
if (NODE) {
@@ -73,6 +74,8 @@ if (NODE) {
7374
NODE = NODE_TO_ABI['18'];
7475
} else if (NODE.startsWith('20')) {
7576
NODE = NODE_TO_ABI['20'];
77+
} else if (NODE.startsWith('22')) {
78+
NODE = NODE_TO_ABI['22'];
7679
} else {
7780
ARGV_ERRORS.push(
7881
'❌ 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.',

0 commit comments

Comments
 (0)