# runtime/entrypoints/style.entrypoint.ts

> 10 lines of code and 2 definitions.

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

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

## Definitions

- `unused` (lexical_declaration, line 7)
- `verdict` (lexical_declaration, line 9)

## Contained in

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

## Source

```typescript
import { absolutePath, relativePath } from "@ssot/paths";
import { persistReport } from "#core/persistence/report.persistence";
import process from "node:process";
import { styleVerdict } from "#core/validators/style.validator";
import { unusedSelectors } from "#core/adapters/style.adapter";

const unused = await unusedSelectors();
await persistReport(absolutePath("govlabHost.reports.lint.purgecss"), { unused });
const verdict = styleVerdict(unused, relativePath("govlabHost.reports.lint.purgecss"));
process.stdout.write(verdict.text);
process.exitCode = verdict.held ? 0 : 1;
```
