Package
import type { Package } from "https://garn.io/ts/v0.0.20/mod.ts";
Package
s are instructions to garn
about how to build a set of files.
For example for a go backend a package would define how to compile it into executables. For an npm project it may define how the project can be bundled into a set of files that can be served by a webserver.
You can build Package
s with garn build
.
type Package = {
tag: "package";
nixExpression: NixExpression;
description: string;
bin: (executableName: string) => Executable;
};§Type
§
{
[src]tag: "package";
nixExpression: NixExpression;
description: string;
bin: (executableName: string) => Executable;
}