Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
"assist": {
"actions": {
"source": {
Expand Down
6 changes: 1 addition & 5 deletions packages/plugin-dts/src/dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,8 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
(!rawCompilerOptions.declarationDir ||
normalize(rawCompilerOptions.declarationDir) !== resolvedDtsEmitPath)
) {
const info =
rawCompilerOptions.outDir && !rawCompilerOptions.declarationDir
? 'outDir'
: 'declarationDir';
throw Error(
`Please set ${info}: "${dtsEmitPath}" in ${color.underline(
`Please set "declarationDir": "${dtsEmitPath}" in ${color.underline(
tsconfigPath,
)} to keep it same as "dts.distPath" or "output.distPath.root" field in lib config.`,
);
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading