updated logs
This commit is contained in:
@@ -44,6 +44,7 @@ async function compileProject(
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error(name, e)
|
||||||
error = (e as BuildFailure).message
|
error = (e as BuildFailure).message
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ export function updateReadmeFile(fileList: readmeData[]) {
|
|||||||
${installLinks}
|
${installLinks}
|
||||||
<!-- END INSTALL LINKS -->`
|
<!-- END INSTALL LINKS -->`
|
||||||
|
|
||||||
console.log(JSON.stringify(installLinksAll))
|
|
||||||
|
|
||||||
let content = readmeStart + installLinksAll + readmeEnd
|
let content = readmeStart + installLinksAll + readmeEnd
|
||||||
writeFileSync(readmeFile, content)
|
writeFileSync(readmeFile, content)
|
||||||
}
|
}
|
||||||
@@ -76,12 +74,5 @@ function readReadmeFile(readmeFile: string): [string, string] {
|
|||||||
if (contentPost.trimStart().length === 0) contentPost = '\n'
|
if (contentPost.trimStart().length === 0) contentPost = '\n'
|
||||||
else contentPost = '\n\n' + contentPost.trimStart()
|
else contentPost = '\n\n' + contentPost.trimStart()
|
||||||
|
|
||||||
console.log(
|
|
||||||
JSON.stringify(index),
|
|
||||||
JSON.stringify(content),
|
|
||||||
JSON.stringify(contentPre),
|
|
||||||
JSON.stringify(contentPost)
|
|
||||||
)
|
|
||||||
|
|
||||||
return [contentPre, contentPost]
|
return [contentPre, contentPost]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,10 +42,9 @@ export default function (name: string): [UserScriptMetaFull, string] {
|
|||||||
//cases where the value is empty
|
//cases where the value is empty
|
||||||
if (val === undefined) continue
|
if (val === undefined) continue
|
||||||
if (val === false) continue
|
if (val === false) continue
|
||||||
if (val === '')
|
if (val === '') continue
|
||||||
continue
|
|
||||||
|
|
||||||
//:)
|
//:)
|
||||||
;(meta[key] as any) = val
|
;(meta[key] as any) = val
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user