Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit e2b5d5d

Browse files
authored
fix: another attempt to suppress warning (#841)
1 parent 2bd053b commit e2b5d5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cortex-js/src/command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env node --no-warnings
1+
#!/usr/bin/env node
22
import ora from 'ora';
33
const dependenciesSpinner = ora('Loading dependencies...').start();
44
const time = Date.now();
@@ -10,6 +10,8 @@ import { ContextService } from '@/infrastructure/services/context/context.servic
1010

1111
dependenciesSpinner.succeed('Dependencies loaded in ' + (Date.now() - time) + 'ms');
1212

13+
process.removeAllListeners('warning');
14+
1315
async function bootstrap() {
1416
let telemetryUseCase: TelemetryUsecases | null = null;
1517
let contextService: ContextService | null = null;

0 commit comments

Comments
 (0)