Skip to content

Commit

Permalink
Fix (build-tools): Output typings in the same folder as the bundles.
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol committed Jul 17, 2024
1 parent 6e3134c commit 06a9561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-build-tools/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ test( 'TypeScript declarations', async () => {
'index.css',
'index-editor.css',
'index-content.css',
'types/input.d.ts'
'input.d.ts'
] );
} );

Expand Down

0 comments on commit 06a9561

Please sign in to comment.