chore: change remaining usages of process.mainModule
(#38705)
This commit is contained in:
parent
ab49e98401
commit
f5869b6fb9
6 changed files with 6 additions and 6 deletions
|
@ -109,7 +109,7 @@ function isMajorNightly (version, currentVersion) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (process.mainModule === module) {
|
||||
if (require.main === module) {
|
||||
main().catch((error) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue