added more data to readme generation

This commit is contained in:
2022-08-24 11:57:11 -05:00
parent 7e24370186
commit c9183d3022
7 changed files with 21 additions and 13 deletions

View File

@@ -5,14 +5,14 @@ import readMeta from './readmeta'
import { format, resolveConfig } from 'prettier'
import { AllPaths, CLIArgs } from './main'
export default interface runBuild {
export interface runBuildResult {
meta: UserScriptMetaFull
error: string | null
}
export default function runBuild(
name: string,
watchCallback: (result: runBuild) => void
watchCallback: (result: runBuildResult) => void
) {
//read meta file
let { meta, metaString } = readMeta(name)