Skip to content

SourceFile

Creates a JSON source file which defines a JSON value.

import { SourceFile } from "@alloy-js/json";
<SourceFile path="string">
{children}
</SourceFile>

Props

childrenoptionalChildren

The contents of the source file

pathstring

The path for this source file relative to the parent directory

See also