@imp/rules/js
Module: @imp/rules/js.
js_app(options)
Declare a JavaScript application. Options: src, base, sources, entry, node_version, and pnpm_version. Return sources, root, BUILD, and RUN.
Source: rules/js/graph.luau:160.
js_sources(options)
Declare shallow sources. Options: src ("."), base (the BUILD package). Return frozen sources, root, and BUILD fields.
Source: rules/js/index.luau:17.
register_js_app_hook(hook)
Register an extension that adds application facets at declaration time.
Source: rules/js/graph.luau:24.
register_js_sources_hook(hook)
Register an extension that adds source facets at declaration time.
Source: rules/js/index.luau:8.
ts_app(options)
Declare a TypeScript application with the js_app options. The project must declare TypeScript and tsconfig.json with outDir set to "dist". The entry is relative to the compiled dist directory.
Source: rules/js/graph.luau:168.