Skip to content

Commit

Permalink
Chore: Prevent database schema generation script from adding extra sp…
Browse files Browse the repository at this point in the history
…aces
  • Loading branch information
laurent22 committed Feb 12, 2024
1 parent 771ada0 commit 012fe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tools/generate-database-types.ts
Expand Up @@ -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}...`);

Expand Down

0 comments on commit 012fe0f

Please sign in to comment.