Skip to content

Conversation

@nboehret
Copy link
Contributor

@nboehret nboehret commented Jul 8, 2022

This fix allows for a windows machine to build the adapter and for it to run properly on non-windows servers which the majority of cloud systems run as.

I tested this locally on my windows machine and it worked with build, preview, and serverless deploy and they all worked fine.

I understand if no one else cares for this, my own plan is to use CICD for my deployments and that would be from a linux VM of some sort but at least for now this would help me and possibly others.

Related issue: #12

index.js Outdated
}
})

if (path.sep == "\\")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there may be a less brittle way of doing this using the https://nodejs.org/api/os.html, however i don't this this is even necessary. Reading the docs for path There appears to be a way to force it to into posix mode. This should fix the path separator issue.

@yarbsemaj
Copy link
Owner

Hi @nboehret Thank You for your interest in my project! Iv reviewed your PR and think there may be a cleaner way of going about what your trying to do. Could you take a look and see if my suggestions work. :)

@nboehret
Copy link
Contributor Author

nboehret commented Jul 9, 2022

@yarbsemaj You were right! I was looking for something like this but I missed it originally, thank you. This is much simpler and cleaner, imo. Let me know what you think.

@yarbsemaj yarbsemaj merged commit da2ffa9 into yarbsemaj:master Jul 10, 2022
@nboehret
Copy link
Contributor Author

@yarbsemaj any chance we could get a new release?

@yarbsemaj
Copy link
Owner

@nboehret Iv published a new release, 0.9.2, with your change in :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants