Skip to content

Commit

Permalink
Merge pull request #16943 from ckeditor/ci/3733
Browse files Browse the repository at this point in the history
Internal: Exclude TypeScript declaration files when collecting translation source files.
  • Loading branch information
pomek authored Aug 20, 2024
2 parents 77bf9f8 + 80e4ddf commit b37bbbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/translations/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function parseArguments( args ) {
}

/**
* Returns absolute paths to CKEditor 5 sources. Files located in the `src/lib/` directory are excluded.
* Returns absolute paths to CKEditor 5 sources. Files located in the `src/lib/` directory and TypeScript declaration files are excluded.
*
* @param {TranslationOptions} options
* @returns {Array.<String>}
Expand All @@ -92,7 +92,8 @@ function getCKEditor5SourceFiles( { cwd, includeExternalDirectory } ) {

return patterns.map( item => glob.sync( item, globOptions ) )
.flat()
.filter( srcPath => !srcPath.match( /packages\/[^/]+\/src\/lib\// ) );
.filter( srcPath => !srcPath.match( /packages\/[^/]+\/src\/lib\// ) )
.filter( srcPath => !srcPath.endsWith( '.d.ts' ) );
}

/**
Expand Down

0 comments on commit b37bbbf

Please sign in to comment.