Rename .js to .mjs and update import paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-18 22:30:22 +00:00
parent 835e446f7d
commit 1b66e499ad
5 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
import { createInterface } from 'readline'; import { createInterface } from 'readline';
import { readdirSync, readlinkSync, readFileSync } from 'fs'; import { readdirSync, readlinkSync, readFileSync } from 'fs';
import { send_to_claude } from './paste.js'; import { send_to_claude } from './paste.mjs';
const args = process.argv.slice(2); const args = process.argv.slice(2);

View File

@@ -4,6 +4,6 @@
"type": "module", "type": "module",
"description": "Paste text into the Claude Code terminal window via xdotool", "description": "Paste text into the Claude Code terminal window via xdotool",
"bin": { "bin": {
"claude-remote": "./claude-remote.js" "claude-remote": "./claude-remote.mjs"
} }
} }

View File

@@ -1,6 +1,6 @@
import { execFileSync, spawn } from 'child_process'; import { execFileSync, spawn } from 'child_process';
import { setTimeout as sleep } from 'timers/promises'; import { setTimeout as sleep } from 'timers/promises';
import { find_claude_window } from './find-window.js'; import { find_claude_window } from './find-window.mjs';
export async function copy_to_clipboard(text) { export async function copy_to_clipboard(text) {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {