Skip to content

Add Deno standalone executable for voxgig-apidef#5

Merged
rjrodger merged 2 commits intomainfrom
claude/deno-standalone-executable-2yEGo
Mar 5, 2026
Merged

Add Deno standalone executable for voxgig-apidef#5
rjrodger merged 2 commits intomainfrom
claude/deno-standalone-executable-2yEGo

Conversation

@rjrodger
Copy link
Contributor

@rjrodger rjrodger commented Mar 5, 2026

Summary

This PR adds a Deno-based standalone executable implementation for voxgig-apidef, enabling users to run the API definition generator as a compiled binary without requiring Node.js.

Key Changes

  • main.ts: New Deno entry point that provides a complete CLI implementation with:

    • Command-line argument parsing with support for folder, definition file, watch mode, and debug level options
    • Integration with the @voxgig/apidef npm package for generation and watch functionality
    • Input validation using Gubu schema validation
    • Help and version output
    • Comprehensive error handling
  • build.sh: Build script for compiling the Deno application into platform-specific standalone executables with:

    • Current platform compilation support
    • Commented-out cross-compilation targets for Linux, macOS, and Windows
    • Output to dist/ directory
  • deno.json: Deno configuration file with:

    • Development tasks (start and compile)
    • Standard library imports for CLI parsing and path utilities
    • Strict TypeScript compiler options

Notable Implementation Details

  • The executable supports the same CLI interface as the Node.js version with short and long option aliases
  • Watch mode is fully supported for development workflows
  • The implementation uses npm specifiers to import @voxgig/apidef, maintaining compatibility with the existing package ecosystem
  • Permissions are explicitly declared (read, write, env, net) for security and transparency

https://claude.ai/code/session_01FDR3cxGro1tzGUjVe1pZh8

claude and others added 2 commits March 4, 2026 20:52
Provides a Deno-based CLI entry point that can be compiled into a
standalone binary using `deno compile`. Mirrors the existing
bin/voxgig-apidef Node.js CLI with equivalent argument parsing,
validation, and generation workflow, plus a proper help message.

https://claude.ai/code/session_01FDR3cxGro1tzGUjVe1pZh8
@rjrodger rjrodger merged commit 30c7926 into main Mar 5, 2026
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants