Enumeration

BuildReason

enum BuildReason

Describes why the current build was triggered.

Instance Methods

func changedFile() -> Path?

Returns the path of the file that triggered this build, if any.

Enumeration Cases

case fileChange(Path)

A non-Swift content/asset file changed during dev mode.

case initial

First build when the process starts (cold start).

case recompile(Path)

A Swift source file changed, triggering recompilation and relaunch.

Relationships

Conforms To

Swift.Sendable