Skip to content

Commit

Permalink
fixup into more consistent version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Sep 17, 2024
1 parent 52ad513 commit de69f88
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/build/stable/utils/versions/dfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ function main(): void {
}
}

main();
if (require.main === module) {
main();
}
4 changes: 3 additions & 1 deletion src/build/stable/utils/versions/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ function main(): void {
}
}

main();
if (require.main === module) {
main();
}
4 changes: 3 additions & 1 deletion src/build/stable/utils/versions/rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ function main(): void {
}
}

main();
if (require.main === module) {
main();
}
4 changes: 3 additions & 1 deletion src/build/stable/utils/versions/wasi2ic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ function main(): void {
}
}

main();
if (require.main === module) {
main();
}

0 comments on commit de69f88

Please sign in to comment.