1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-01 19:15:01 +02:00

Chore: Prevent database schema generation script from adding extra spaces

This commit is contained in:
Laurent Cozic 2024-02-12 14:51:07 +00:00
parent 771ada0184
commit 012fe0fb44

View File

@ -109,7 +109,7 @@ async function main() {
const listRendererDependency = `type ListRendererDatabaseDependency = ${generateListRenderDependencyType(definitions.tables)};`;
const noteListTypeFilePath = `${rootDir}/packages/lib/services/plugins/api/noteListType.ts`;
await fs.writeFile(targetFile, `${staticContent}\n\n${header}\n\n${tsString}\n\n${runtimeContent}`, 'utf8');
await fs.writeFile(targetFile, `${staticContent.trim()}\n\n${header}\n\n${tsString}\n\n${runtimeContent}`, 'utf8');
console.info(`Writing ListRendererDatabaseDependency type to ${noteListTypeFilePath}...`);