Skip to content

Allow configuring js runtime for the compiler #20428

Open
@sigmaSd

Description

@sigmaSd

Summary

Adding a nim configuration option to choose which javascript runtime to run the js examples with docgen

Description

Currently docgen runs the javascript examples with node, but I want to run it with deno because I depend on Deno apis (when targeting deno) also maybe someone wants to target bun

Currently its hard coded here

cmdPrefix = findNodeJs() & " --unhandled-rejections=strict "

I propose adding a configuration option that allows the user to choose the runtime.

Alternatives

No response

Standard Output Examples

No response

Backwards Compatibility

No response

Links

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions