From 06a95619ecf1e6c7f1148eae15835592cdeefaa2 Mon Sep 17 00:00:00 2001 From: Filip Sobol Date: Wed, 17 Jul 2024 13:55:02 +0200 Subject: [PATCH] Fix (build-tools): Output typings in the same folder as the bundles. --- packages/ckeditor5-dev-build-tools/src/config.ts | 2 +- packages/ckeditor5-dev-build-tools/tests/build/build.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' ] ); } );