From 907d6ac3f29d146a62beba8a8dee0b5a32580eac Mon Sep 17 00:00:00 2001 From: ikkz Date: Thu, 21 Nov 2024 12:59:14 +0800 Subject: [PATCH] feat: readable fields structure --- build.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.js b/build.js index 9abb517..bc552ed 100644 --- a/build.js +++ b/build.js @@ -137,7 +137,11 @@ export async function rollupOptions(config) { let frontHtml = ''; frontHtml += `
`; frontHtml += ``; - frontHtml += ``; + frontHtml += ` + +`; frontHtml += files.js ?.map(({ code }) => ``) @@ -183,12 +187,12 @@ export async function rollupOptions(config) { return options.fields .map( (field) => - `
${envValue( + `
${envValue( `{{${field}}}`, release[config.id].notes[0].fields[field] || '', )}
`, ) - .join(''); + .join('\n'); } function buildEntry() {