-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
convert_require support for replacing sources / aliases with their relative string pathways #214
Comments
Also, not sure if this would be worth a new issue - but being able to convert |
Can second this. Currently working with darklua to manage a plugin, in which case whenever it decides to transpile to a hierarchy descending from the DataModel, you would need to manually force a relative path approach. @nightcycle I'm wondering if in your case - I know in mine it'd work - if there was just a rule to force all paths to be relative. Alternative approach could be to add a padding around the rojo_sourcemap which determines whether or not we want to use relative paths or paths from the DataModel. The issue as whole arises here:
|
I created a pull request which can be found here. It implements a new "force_relative_path" option for your require rules. |
Hello! I've been using darklua for a few weeks now and I'm really liking it! While using it I came across a relatively new painpoint when using it to deploy code across lune and roblox.
Use Case
I have a few projects that have modules which deploy to both a lune env and a roblox env. I don't tend to use the same aliases in the lune environment.
Example Output
source:
typical roblox conversion:
requested feature that would run in lune without much fuss:
Conclusion
This isn't a blocker for me anymore - I wrote up a slow bash script that I run afterwards to convert a property-path to the requested format, however it has flaws, and I think that as lune grows in popularity there are only going to be more people who use darklua to deploy across multiple env with separate alias configs.
Thank you for your time!
The text was updated successfully, but these errors were encountered: