Skip to content

Commit 4ac4593

Browse files
committed
[INTERNAL] transformApiJson: Fix regression in UI5 Tooling scenario
(cherry picked from UI5/openui5@d3bcca9)
1 parent d1bf129 commit 4ac4593

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/processors/jsdoc/lib/transformApiJson.cjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -989,11 +989,12 @@ function transformer(sInputFile, sOutputFile, sLibraryFile, vDependencyAPIFiles,
989989
const {sources} = options;
990990
let {librarySrcDir, libraryTestDir} = options;
991991

992-
// Using path.join to normalize POSIX paths to Windows paths on Windows
993-
librarySrcDir = path.join(librarySrcDir);
994-
libraryTestDir = path.join(libraryTestDir);
995-
996992
if (Array.isArray(sources) && typeof librarySrcDir === "string" && typeof libraryTestDir === "string") {
993+
994+
// Using path.join to normalize POSIX paths to Windows paths on Windows
995+
librarySrcDir = path.join(librarySrcDir);
996+
libraryTestDir = path.join(libraryTestDir);
997+
997998
/**
998999
* Calculate prefix to check
9991000
*

0 commit comments

Comments
 (0)