{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/build.step.ts",
          "name": "markerPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-build-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/build.step.ts",
            "label": "core/steps/build.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/build.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-build-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "objectPath",
      "signature": "const objectPath = function objectPath(module: SourceModule): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/build.step.ts",
          "name": "unpacked",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-build-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/build.step.ts",
            "label": "core/steps/build.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/build.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-build-step-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "verifiedFetch",
      "signature": "export const verifiedFetch = function verifiedFetch(url: string, path: string, sha256: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/setup.step.ts",
          "name": "contextOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-setup-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/setup.step.ts",
            "label": "core/steps/setup.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/setup.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-setup-step-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "staleModules",
      "signature": "export const staleModules = async function staleModules(shell: Shell): Promise<readonly SourceModule[]> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/pipelines/setup.pipeline.ts",
          "name": "buildModules",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
            "label": "core/pipelines/setup.pipeline.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
            "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "compileModules",
      "signature": "export const compileModules = async function compileModules("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/pipelines/setup.pipeline.ts",
          "name": "placeModules",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
            "label": "core/pipelines/setup.pipeline.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
            "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "swapModules",
      "signature": "export const swapModules = async function swapModules(shell: Shell, modules: readonly SourceModule[]): Promise<void> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/pipelines/setup.pipeline.ts",
          "name": "returnModules",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
            "label": "core/pipelines/setup.pipeline.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
            "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 97,
      "name": "restoreModules",
      "signature": "export const restoreModules = async function restoreModules("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/pipelines/setup.pipeline.ts",
          "name": "keepModules",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
            "label": "core/pipelines/setup.pipeline.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
            "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "settleModules",
      "signature": "export const settleModules = async function settleModules("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/build.step.ts",
          "name": "objectPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-build-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/build.step.ts",
            "label": "core/steps/build.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/build.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-build-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "markerPath",
      "signature": "const markerPath = function markerPath(module: SourceModule): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/build.step.ts",
          "name": "verifiedFetch",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-build-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/build.step.ts",
            "label": "core/steps/build.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/build.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-build-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "unpacked",
      "signature": "const unpacked = function unpacked(source: SourceArchive): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "COMMAND_JOIN",
      "signature": "const COMMAND_JOIN = \" && \";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "markerOf",
      "signature": "export const markerOf = function markerOf(module: SourceModule): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "checked",
      "signature": "const checked = await Promise.all("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "archive",
      "signature": "const archive = `${SETUP_STAGING}/${source.folder}.tar.gz`;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "builtPath",
      "signature": "export const builtPath = function builtPath(module: SourceModule): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "dynamic",
      "signature": "const dynamic = modules.map((module) => `--add-dynamic-module=../${module.folder}`).join(\" \");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "[object, marker]",
      "signature": "const [object, marker] = [objectPath(module), markerPath(module)];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "result",
      "signature": "const result = await shell.run(commands.join(COMMAND_JOIN));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 101,
      "name": "commands",
      "signature": "const commands = modules.flatMap((module) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 114,
      "name": "paths",
      "signature": "const paths = modules.flatMap((module) => [objectPath(module), markerPath(module)]);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-build-step-ts",
  "language": "typescript",
  "layer": "application",
  "name": "build.step.ts",
  "path": "core/steps/build.step.ts",
  "ref": "anatomy:file-deploy-core-steps-build-step-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
          "label": "core/pipelines/setup.pipeline.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
          "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-setup-step-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/steps/setup.step.ts",
          "label": "core/steps/setup.step.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/steps/setup.step.ts.md",
          "ref": "anatomy:file-deploy-core-steps-setup-step-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-pipelines",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-pipelines",
          "label": "core/pipelines",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-pipelines.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-pipelines"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "step",
    "subject": "build",
    "variant": null
  },
  "stats": {
    "bytes": 4627,
    "callable": 11,
    "definitions": 19,
    "edges": 2,
    "exported": 14,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 7,
      "entry": 2,
      "isolated": 10
    },
    "lines": {
      "blank": 12,
      "code": 104,
      "total": 116
    }
  },
  "summary": "104 lines of code and 19 definitions.",
  "text": "https://banes-lab.com/source/deploy/core/steps/build.step.ts.txt",
  "tree": "deploy",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-certificate-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/certificate.step.ts",
      "label": "core/steps/certificate.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/certificate.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-certificate-step-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-backup-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/backup.step.ts",
      "label": "core/steps/backup.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/backup.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-backup-step-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/deploy/core/steps",
    "label": "core/steps",
    "markdown": "https://banes-lab.com/api/source/deploy/core/steps.md",
    "ref": "api:source/deploy/core/steps"
  }
}
