Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
#!/usr/bin/env node

// Suppress punycode deprecation warning from transitive dependencies
process.removeAllListeners('warning');
process.on('warning', (warning) => {
if (warning.name === 'DeprecationWarning' && warning.message.includes('punycode')) {
process.removeAllListeners("warning");
Copy link

Copilot AI Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing all listeners for the 'warning' event can inadvertently disable other handlers; consider filtering only punycode deprecation warnings or document this side effect.

Suggested change
process.removeAllListeners("warning");

Copilot uses AI. Check for mistakes.
process.on("warning", (warning) => {
if (
warning.name === "DeprecationWarning" &&
warning.message.includes("punycode")
) {
return; // Suppress punycode warnings
}
console.warn(warning.stack);
});

import {execute} from '@oclif/core'
import { execute } from "@oclif/core";
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";

await execute({dir: import.meta.url})
const __dirname = dirname(fileURLToPath(import.meta.url));

await execute({ dir: __dirname });