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.
dts.build
1 parent adbd46c commit cfff409Copy full SHA for cfff409
packages/plugin-dts/src/dts.ts
@@ -167,12 +167,8 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
167
(!rawCompilerOptions.declarationDir ||
168
normalize(rawCompilerOptions.declarationDir) !== resolvedDtsEmitPath)
169
) {
170
- const info =
171
- rawCompilerOptions.outDir && !rawCompilerOptions.declarationDir
172
- ? 'outDir'
173
- : 'declarationDir';
174
throw Error(
175
- `Please set ${info}: "${dtsEmitPath}" in ${color.underline(
+ `Please set "declarationDir": "${dtsEmitPath}" in ${color.underline(
176
tsconfigPath,
177
)} to keep it same as "dts.distPath" or "output.distPath.root" field in lib config.`,
178
);
0 commit comments