diff --git a/packages/ckeditor5-dev-build-tools/src/config.ts b/packages/ckeditor5-dev-build-tools/src/config.ts index 36282b97e..b954b1526 100644 --- a/packages/ckeditor5-dev-build-tools/src/config.ts +++ b/packages/ckeditor5-dev-build-tools/src/config.ts @@ -313,7 +313,7 @@ function getTypeScriptPlugin( { inlineSources: sourceMap, // https://github.com/rollup/plugins/issues/260 typescript: getUserDependency( 'typescript' ), declaration: declarations, - declarationDir: declarations ? path.join( path.parse( output ).dir, 'types' ) : undefined, + declarationDir: declarations ? path.parse( output ).dir : undefined, compilerOptions: { emitDeclarationOnly: true } diff --git a/packages/ckeditor5-dev-build-tools/tests/build/build.test.ts b/packages/ckeditor5-dev-build-tools/tests/build/build.test.ts index 0c6a0ff1e..756fa016d 100644 --- a/packages/ckeditor5-dev-build-tools/tests/build/build.test.ts +++ b/packages/ckeditor5-dev-build-tools/tests/build/build.test.ts @@ -116,7 +116,7 @@ test( 'TypeScript declarations', async () => { 'index.css', 'index-editor.css', 'index-content.css', - 'types/input.d.ts' + 'input.d.ts' ] ); } );