Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Package

import type { Package } from "https://garn.io/ts/v0.0.20/mod.ts";

Packages 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 Packages with garn build.

type Package = {
tag: "package";
nixExpression: NixExpression;
description: string;
setDescription: (this: Package, newDescription: string) => Package;
bin: (executableName: string) => Executable;
}
;

§Type

§
{
tag: "package";
nixExpression: NixExpression;
description: string;
setDescription: (this: Package, newDescription: string) => Package;
bin: (executableName: string) => Executable;
}
[src]