-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test db path on Windows #869
Conversation
9280643
to
93b8945
Compare
Leaving this PR as a draft for now, because I have not been able to manually test it yet. I build my changes and copy them over with
|
Fixed the missing module error by running The DB path works in git-bash now. EDIT: Works in PowerShell and cmd as well |
@RobertBroersma Can you take a look at this PR please? |
packages/internal/src/paths.ts
Outdated
@@ -193,3 +193,15 @@ export const processPagesDir = ( | |||
}) | |||
return deps | |||
} | |||
|
|||
export const toPosixPathOnWindows = (path: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anyone has a better name for this function I'm all ears 👂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make something like ensurePosixPath
Works on my machine and the checks are passing. Nice one! |
There's redwood/packages/structure/src/x/URL.ts Lines 10 to 15 in 20f3dc9
|
I tried using that Here's the output
This is how I use
|
Ah ok, thanks for looking into that for me :) |
9ba97b5
to
09c2556
Compare
LGTM! |
09c2556
to
eb07743
Compare
eb07743
to
072d719
Compare
My take on #854