@probelabs/visor 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87192,7 +87192,9 @@ async function markCheckAsFailed(checkService, owner, repo, checkRunId, checkNam
|
|
|
87192
87192
|
console.error(`❌ Failed to mark ${checkName} check as failed:`, finalError);
|
|
87193
87193
|
}
|
|
87194
87194
|
}
|
|
87195
|
-
|
|
87195
|
+
// Entry point - execute immediately when the script is run
|
|
87196
|
+
// Note: require.main === module check doesn't work reliably with ncc bundling
|
|
87197
|
+
(() => {
|
|
87196
87198
|
// Simple mode detection: use GITHUB_ACTIONS env var which is always 'true' in GitHub Actions
|
|
87197
87199
|
// Also check for --cli flag to force CLI mode even in GitHub Actions environment
|
|
87198
87200
|
const isGitHubAction = process.env.GITHUB_ACTIONS === 'true' && !process.argv.includes('--cli');
|
|
@@ -87207,9 +87209,12 @@ if (require.main === require.cache[eval('__filename')]) {
|
|
|
87207
87209
|
console.error('CLI execution failed:', error);
|
|
87208
87210
|
process.exit(1);
|
|
87209
87211
|
});
|
|
87212
|
+
}).catch(error => {
|
|
87213
|
+
console.error('Failed to import CLI module:', error);
|
|
87214
|
+
process.exit(1);
|
|
87210
87215
|
});
|
|
87211
87216
|
}
|
|
87212
|
-
}
|
|
87217
|
+
})();
|
|
87213
87218
|
|
|
87214
87219
|
|
|
87215
87220
|
/***/ }),
|