# runtime/entrypoints/dependency.entrypoint.ts

> 12 lines of code and 1 definition.

Tree: Project Scripts
Language: typescript
Layer: runtime
Canonical: https://banes-lab.com/anatomy/scripts#file-scripts-runtime-entrypoints-dependency-entrypoint-ts
Source text: https://banes-lab.com/source/scripts/runtime/entrypoints/dependency.entrypoint.ts.txt

Listed in [runtime/entrypoints](https://banes-lab.com/api/source/scripts/runtime/entrypoints.md), after [runtime/entrypoints/credential.entrypoint.ts](https://banes-lab.com/source/scripts/runtime/entrypoints/credential.entrypoint.ts.md) and before [runtime/entrypoints/nginx.entrypoint.ts](https://banes-lab.com/source/scripts/runtime/entrypoints/nginx.entrypoint.ts.md).

## Definitions

- `verdicts` (lexical_declaration, line 10)

## Contained in

- [runtime/entrypoints](https://banes-lab.com/anatomy/scripts/folder-scripts-runtime-entrypoints.md)

## Enforces

- [Single Source of Truth](https://banes-lab.com/records/architecture/single-source-of-truth.md)

## Source

```typescript
import { hoistVerdict, installScriptVerdict } from "#core/validators/dependency.validator";
import { ROOT } from "@ssot/paths";
import { defineCheck } from "@govlab/context/check";
import { hoistBreaches } from "#core/analyzers/dependency.analyzer";
import { installScriptListing } from "#core/adapters/dependency.adapter";
import process from "node:process";

defineCheck({ detects: [], enforces: ["architecture:single-source-of-truth"] });

const verdicts = [hoistVerdict(hoistBreaches(ROOT)), installScriptVerdict(installScriptListing())];
for (const verdict of verdicts) {
    process.stdout.write(verdict.text);
}
process.exitCode = verdicts.every((verdict) => verdict.held) ? 0 : 1;
```
