{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/formatters/tree.formatter.ts",
          "name": "renderTreeDeclarations",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-formatters-tree-formatter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/formatters/tree.formatter.ts",
            "label": "core/formatters/tree.formatter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/formatters/tree.formatter.ts.md",
            "ref": "anatomy:file-build-scripts-core-formatters-tree-formatter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/coordinators/anatomy.coordinator.ts",
          "name": "buildAnatomy",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-anatomy-coordinator-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/anatomy.coordinator.ts",
            "label": "core/coordinators/anatomy.coordinator.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/anatomy.coordinator.ts.md",
            "ref": "anatomy:file-build-scripts-core-coordinators-anatomy-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "persistTreeDeclarations",
      "signature": "export const persistTreeDeclarations = async function persistTreeDeclarations("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/anatomy.strings.ts",
          "name": "unpublishedFiles",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-anatomy-strings-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/configuration/strings/anatomy.strings.ts",
            "label": "configuration/strings/anatomy.strings.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/configuration/strings/anatomy.strings.ts.md",
            "ref": "anatomy:file-build-scripts-configuration-strings-anatomy-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "publishTree",
      "signature": "export const publishTree = async function publishTree("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "FOLDER_SEPARATOR",
      "signature": "const FOLDER_SEPARATOR = \"/\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "foldersOf",
      "signature": "const foldersOf = function foldersOf(paths: readonly string[]): ReadonlySet<string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "end",
      "signature": "let end = path.lastIndexOf(FOLDER_SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "files",
      "signature": "const files = new Set(paths);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "folders",
      "signature": "const folders = foldersOf(paths);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "sync",
      "signature": "const sync = await syncFolder(from, to, (source) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "path",
      "signature": "const path = toPosix(relative(from, source));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "missing",
      "signature": "const missing = paths.filter((path) => !existsSync(join(to, path)));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-persistence-tree-persistence-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "tree.persistence.ts",
  "path": "core/persistence/tree.persistence.ts",
  "ref": "anatomy:file-build-scripts-core-persistence-tree-persistence-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-persistence",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-persistence",
          "label": "core/persistence",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-persistence.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-persistence"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-anatomy-strings-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/configuration/strings/anatomy.strings.ts",
          "label": "configuration/strings/anatomy.strings.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/configuration/strings/anatomy.strings.ts.md",
          "ref": "anatomy:file-build-scripts-configuration-strings-anatomy-strings-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-formatters-tree-formatter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/formatters/tree.formatter.ts",
          "label": "core/formatters/tree.formatter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/formatters/tree.formatter.ts.md",
          "ref": "anatomy:file-build-scripts-core-formatters-tree-formatter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-anatomy-coordinator-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/anatomy.coordinator.ts",
          "label": "core/coordinators/anatomy.coordinator.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/anatomy.coordinator.ts.md",
          "ref": "anatomy:file-build-scripts-core-coordinators-anatomy-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-configuration-strings.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-coordinators"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-formatters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-formatters",
          "label": "core/formatters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-formatters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-formatters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "persistence",
    "subject": "tree",
    "variant": null
  },
  "stats": {
    "bytes": 1850,
    "callable": 3,
    "definitions": 10,
    "edges": 2,
    "exported": 7,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 1,
      "isolated": 8
    },
    "lines": {
      "blank": 4,
      "code": 44,
      "total": 48
    }
  },
  "summary": "44 lines of code and 10 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/persistence/tree.persistence.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-persistence-text-persistence-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/persistence/text.persistence.ts",
      "label": "core/persistence/text.persistence.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/persistence/text.persistence.ts.md",
      "ref": "anatomy:file-build-scripts-core-persistence-text-persistence-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/persistence",
    "label": "core/persistence",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/persistence.md",
    "ref": "api:source/build-scripts/core/persistence"
  }
}
