Skip to content

Commit 63a385d

Browse files
jordanhunt22Convex, Inc.
authored andcommitted
Use posix separators for convex.config (#41957)
Fixes an error with separators in windows vs. unix: ```Error: ROR] Could not resolve "./convex\\convex.config.js" ✖ esbuild failed: Error: Build failed with 1 error: error: Could not resolve "./convex\\convex.config.js" ``` We have to use `\` instead of`/` sometimes in the definition path. GitOrigin-RevId: 1457a5170c8a52784f828bffd2b82a91bbf7dd7c
1 parent be4a6e0 commit 63a385d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli/lib/components/definition/directoryStructure.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ export function qualifiedDefinitionPath(
5353
workingDir = ".",
5454
) {
5555
const definitionPath = path.relative(workingDir, directory.definitionPath);
56-
return `./${definitionPath}`;
56+
const posixDefinitionPath = definitionPath
57+
.split(path.sep)
58+
.join(path.posix.sep);
59+
return `./${posixDefinitionPath}`;
5760
}
5861

5962
// NB: The process cwd will be used to resolve the directory specified in the constructor.

0 commit comments

Comments
 (0)