Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ function setProjectReferences(options: SetProjectReferencesOptions): void {
// create reference only to modules with tsconfig file
.filter((linkedModule): linkedModule is Module =>
!!nullOnNotfound(() => getTsConfigJson(linkedModule.path)))
.map(linkedModule => path.relative(module.path, linkedModule.path))
.map(linkedModule => {
// parse path using native path separators, but always format the output as posix
return path.relative(module.path, linkedModule.path).split(path.sep).join(path.posix.sep)
})

if (isEqual(sortBy(currentReferences), sortBy(desiredReferences)) === false) {
everythingIsFine = false
Expand Down