Skip to content

Commit

Permalink
Explain why we need to use forward slashes for relativePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Aexylus authored and tantaman committed Dec 28, 2024
1 parent fb7ca89 commit 26206db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/zero-schema/src/build-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ async function main() {
path.basename(absoluteConfigPath),
);

// tsImport doesn't expect to receive slashes in the Windows format when running
// on Windows. They need to be converted to *nix format.
relativePath = relativePath.replace(/\\/g, "/");

try {
Expand Down

0 comments on commit 26206db

Please sign in to comment.