We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c5b444 commit 4366c74Copy full SHA for 4366c74
scripts/build-types/index.mjs
@@ -52,7 +52,7 @@ async function buildType(typeFilePath, entry, options) {
52
53
const tpl = template({ ...options, modules, rawModules, level, entry, types, packageName: config.packageName });
54
55
- await outputFile(typeFilePath, `${ tpl.dts }\n\n`, { flag: 'a' });
+ await outputFile(typeFilePath, `${ tpl.dts }${ tpl.dts ? '\n\n' : '' }`, { flag: 'a' });
56
}
57
58
async function getVersions() {
0 commit comments