# core/steps/surface.step.ts

> 13 lines of code and 2 definitions.

Tree: Bane's Lab Build Scripts
Language: typescript
Layer: application
Canonical: https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-steps-surface-step-ts
Source text: https://banes-lab.com/source/build-scripts/core/steps/surface.step.ts.txt

Listed in [core/steps](https://banes-lab.com/api/source/build-scripts/core/steps.md), after [core/steps/page.step.ts](https://banes-lab.com/source/build-scripts/core/steps/page.step.ts.md) and before [core/steps/text.step.ts](https://banes-lab.com/source/build-scripts/core/steps/text.step.ts.md).

## Definitions

- `run` (method_definition, line 10)
- `recorded` (lexical_declaration, line 11)

## Contained in

- [core/steps](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-steps.md)

## Uses

- [configuration/strings/surface.strings.ts](https://banes-lab.com/source/build-scripts/configuration/strings/surface.strings.ts.md)

## Linked from

- [configuration/strings](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-configuration-strings.md)

## Source

```typescript
import { defineStep } from "#core/factories/step.factory";
import { recordSurfaces } from "#core/coordinators/surface.coordinator";
import { relativePath } from "@ssot/paths";
import { surfacesLine } from "#configuration/strings/surface.strings";

defineStep({
    cache: null,
    name: "surfaces",
    phase: "start",
    async run() {
        const recorded = await recordSurfaces();
        return { gives: {}, line: surfacesLine(recorded.figures, recorded.reused, relativePath("app.surfaces")) };
    },
});
```
