Skip to content

Commit 4366c74

Browse files
committed
Fix empty lines
1 parent 8c5b444 commit 4366c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-types/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function buildType(typeFilePath, entry, options) {
5252

5353
const tpl = template({ ...options, modules, rawModules, level, entry, types, packageName: config.packageName });
5454

55-
await outputFile(typeFilePath, `${ tpl.dts }\n\n`, { flag: 'a' });
55+
await outputFile(typeFilePath, `${ tpl.dts }${ tpl.dts ? '\n\n' : '' }`, { flag: 'a' });
5656
}
5757

5858
async function getVersions() {

0 commit comments

Comments
 (0)