@probelabs/visor 0.1.21 → 0.1.22
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
|
@@ -87181,8 +87181,13 @@ async function markCheckAsFailed(checkService, owner, repo, checkRunId, checkNam
|
|
|
87181
87181
|
}
|
|
87182
87182
|
}
|
|
87183
87183
|
if (require.main === require.cache[eval('__filename')]) {
|
|
87184
|
-
// Check if running in CLI mode
|
|
87185
|
-
|
|
87184
|
+
// Check if running in CLI mode - only when explicitly set or has CLI-specific arguments
|
|
87185
|
+
const hasCliArgs = process.argv.slice(2).some(arg => arg.startsWith('--check') ||
|
|
87186
|
+
arg.startsWith('--output') ||
|
|
87187
|
+
arg.startsWith('--config') ||
|
|
87188
|
+
arg === '--help' ||
|
|
87189
|
+
arg === '--version');
|
|
87190
|
+
if (process.env.VISOR_CLI_MODE === 'true' || hasCliArgs) {
|
|
87186
87191
|
// Import and run CLI
|
|
87187
87192
|
Promise.resolve().then(() => __importStar(__nccwpck_require__(10091))).then(({ main }) => {
|
|
87188
87193
|
main().catch(error => {
|