diff --git a/src/main.ts b/src/main.ts index 3313ede..54270e1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -44,6 +44,7 @@ async function compileProject( }, }) } catch (e) { + console.error(name, e) error = (e as BuildFailure).message } diff --git a/src/readmefile.ts b/src/readmefile.ts index 5c8e21b..4813e24 100644 --- a/src/readmefile.ts +++ b/src/readmefile.ts @@ -19,8 +19,6 @@ export function updateReadmeFile(fileList: readmeData[]) { ${installLinks} ` - console.log(JSON.stringify(installLinksAll)) - let content = readmeStart + installLinksAll + readmeEnd writeFileSync(readmeFile, content) } @@ -76,12 +74,5 @@ function readReadmeFile(readmeFile: string): [string, string] { if (contentPost.trimStart().length === 0) contentPost = '\n' else contentPost = '\n\n' + contentPost.trimStart() - console.log( - JSON.stringify(index), - JSON.stringify(content), - JSON.stringify(contentPre), - JSON.stringify(contentPost) - ) - return [contentPre, contentPost] } diff --git a/src/readmeta.ts b/src/readmeta.ts index 0336ca4..0522096 100644 --- a/src/readmeta.ts +++ b/src/readmeta.ts @@ -42,10 +42,9 @@ export default function (name: string): [UserScriptMetaFull, string] { //cases where the value is empty if (val === undefined) continue if (val === false) continue - if (val === '') - continue + if (val === '') continue - //:) + //:) ;(meta[key] as any) = val } } catch (e) {