Skip to content

File Output

The defFileOutput function lets you declare file output paths and the purpose of those files. This function is used to specify the output files that are generated by the script.

defFileOutput("src/*.md", "Product documentation in markdown format")

Schema Validation

const schema = defSchema("KEYWORDS", {
type: "array",
items: {
type: "string",
},
})
defFileOutput("src/rag/*.keywords.json", "An array of keywords in the file", {
schema,
})