Skip to content

Commit 96e57e3

Browse files
baixiangerclaude
andcommitted
Add Node.js support: replace Bun-specific APIs, bundle for Node
- Bun.argv → process.argv (standard Node API) - Bun.sleep → setTimeout promise (standard) - cli.ts shebang: #!/usr/bin/env bun → #!/usr/bin/env node - Added bun build step: bundles to dist/index.js for Node - cli.js entry point for Node users - prepublishOnly runs build automatically - Bump to v0.3.0 Works with both: bun run index.ts OR node dist/index.js Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 04c7fff commit 96e57e3

6 files changed

Lines changed: 5556 additions & 11 deletions

File tree

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.2.2

cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
import "./dist/index.js";

cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/usr/bin/env bun
1+
#!/usr/bin/env node
22
import "./index.ts";

0 commit comments

Comments
 (0)