Skip to content

Commit cf2ccd7

Browse files
author
Devin AI
committed
fix: Update approval-interface.ts to use ES module syntax
1 parent 9da8521 commit cf2ccd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client-twitter/src/web/approval-interface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class WebApprovalInterface {
9494
}
9595
}
9696

97-
if (require.main === module) {
97+
if (import.meta.url === `file://${process.argv[1]}`) {
9898
(async () => {
9999
const approvalInterface = await WebApprovalInterface.create();
100100
try {

0 commit comments

Comments
 (0)