gro_plugin_deno_compile.ts

Gro build plugin for compiling TypeScript to a standalone binary via deno compile.

Runs during the adapt phase (production build only). Optionally generates a SHA-256 hash file for verification.

To avoid bundling all npm devDependencies from package.json, we: 1. Extract just the "imports" from root deno.json 2. Rebase relative paths (e.g. ../fuz_app/ → ../../fuz_app/) since compilation runs from the output subdirectory 3. Write a minimal deno.json to the output directory 4. Compile from that directory (which has no package.json)

Declarations
#

2 declarations

view source

gro_plugin_deno_compile
#

GroPluginDenoCompileOptions
#

gro_plugin_deno_compile.ts view source

GroPluginDenoCompileOptions

entry

Entry point TypeScript file.

type string

output_name

Output binary name (without path).

type string

output_dir

Output directory for the binary.

type string

permissions

Deno permissions to grant.

type Array<string>

flags

Additional deno compile flags.

type Array<string>

generate_hash

Generate a SHA-256 hash file alongside the binary. The hash file is named {output_name}.sha256 and uses sha256sum format.

type boolean

Depends on
#