#20: Use string requires #21
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes the requires to use strings, instead of Roblox script paths. In order to accomplish this, some slight changes were made to the internal structure:
source/List/init.luauandsource/Dictionary/init.luauhave been moved tosource/ListInit.luauandsource/DictionaryInit.luau, respectively, to allow for relative path names to be preserved. Accordingly, the requires ininit.luaufor Freeze now refer to./Freeze/ListInitand./Freeze/DictionaryInit. This keeps the amount of changes to the actual structure of the project to a minimum, and the names "ListInit" and "DictionaryInit" can be changed.The imports resolve correctly in Roblox studio:
Some tools (such as selene) may not support string based requires yet, so this may generate warnings or complaints from them.
Outside of Roblox, the libraries require manual specification for right now:
(from .lune, in the project root):
This change lays the groundwork for future efforts to package Freeze for outside use.
Closes #20