@imp/rules/workflows/package

Module: @imp/rules/workflows/package.

PACKAGE

Documentation is not yet available for this implementation export.

Source: rules/workflows/package/index.luau:206.

binary_product(options)

Plan and finish the common product shape of a native binary.

The rule gives its stable namespace and target_slug, because they are part of its build paths. This function sets the directory layout in that path, the condition for a shared-library bundle, and the run descriptor of a bundle.

Options: namespace, target_slug, executable_name, optional shared_libraries (a list of artifact handles), and bundle_display (the display label of the bundle action).

Returns { bundled, bundle_dir, executable_path, finish(artifact) }. finish returns { artifact, run, bundled, executable_path }. Without shared libraries, artifact and run are the given artifact. With shared libraries, artifact is a directory that has the executable and its libraries, and run is a task that resolves to { executable, executable_path } for the RUN slot.

Source: rules/workflows/package/index.luau:65.

binary_product_layout(options)

Return the binary layout without declaring build tasks.

Source: rules/workflows/package/index.luau:37.

graph_package_goal(roots)

Publish the artifacts of the selected PACKAGE roots under dist/, and return the report.

Source: rules/workflows/package/index.luau:132.

output_name(rule, path, name)

Return the output stem of a native target. Without output_name, the stem is output_slug(path). An explicit output_name must be a portable filename stem. rule is the label in the error message.

Source: rules/workflows/package/index.luau:185.

output_slug(path)

Return the default output stem for a workspace-relative package path. The root . gives root. Each / becomes _.

Source: rules/workflows/package/index.luau:178.