await build()

in src/dnt.ts [10:51]


await build({
  entryPoints: ["./src/main.ts", "./src/cli.ts"],
  outDir: dir,
  scriptModule: false,
  typeCheck: false,
  shims: {
    deno: true,
  },
  package: {
    name: "@guardian/package-linter",
    private: false,
    version: tag,
    description:
      "The Guardian package linter that helps you follow our recommendations",
    license: "Apache-2",
    contributors: ["@aracho1", "@mxdvl"],
    bin: {
      "package-linter": "./esm/cli.mjs",
    },
    repository: {
      type: "git",
      url: "git+https://github.com/guardian/actions-npm-dependencies.git",
    },
    bugs: {
      url: "https://github.com/guardian/actions-npm-dependencies/issues",
    },
    devDependencies: {
      "tslib": "2.6.2",
    },
  },
  postBuild: async () => {
    await Deno.copyFile("LICENSE", "npm/LICENSE");
    await Deno.copyFile("README.md", "npm/README.md");
    await Deno.mkdir("npm/bin");
    await Deno.writeTextFile(
      "npm/esm/cli.mjs",
      ["#!/usr/bin/env node", await Deno.readTextFile("npm/esm/cli.js")].join(
        "\n\n",
      ),
    );
  },
});