Skip to content

Commit 6d2247d

Browse files
committed
fix lint
1 parent 82eec50 commit 6d2247d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/plugin-dts/src/dts.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
135135
if (bundle) {
136136
return ensureTempDeclarationDir(cwd);
137137
}
138-
return distPath ? distPath : rawCompilerOptions.declarationDir ?? './dist';
138+
return distPath
139+
? distPath
140+
: (rawCompilerOptions.declarationDir ?? './dist');
139141
};
140142

141143
const declarationDir = getDeclarationDir(bundle!, distPath);

0 commit comments

Comments
 (0)