Skip to content

Conversation

@ewd3v
Copy link
Contributor

@ewd3v ewd3v commented Nov 2, 2025

This will change the current behaviour of processing the actual source files into the build output, and now processes the already existing copies of the source files instead with themselves as the output.

This avoids issues where darklua doesn't know what .luaurc file to pull configs from. Before it would pull them from the user's own .luaurc, but this pr will fix that and it will now use the .luaurc files generated by pesde-multitarget.

@ewd3v
Copy link
Contributor Author

ewd3v commented Nov 2, 2025

In my case this fixes the issue where the generated Roblox dist packages tries to resolve packages inside "luau_packages" when they are actually located in "roblox_packages".

@ewd3v
Copy link
Contributor Author

ewd3v commented Nov 2, 2025

This was actually a bug introduced in #17 😬

@ewd3v ewd3v marked this pull request as draft November 2, 2025 18:27
@ewd3v
Copy link
Contributor Author

ewd3v commented Nov 2, 2025

Realized this change also makes it so files from build_files that are not present in the includes in the pesde.toml wont get copied into the dist target directory.

@ewd3v ewd3v marked this pull request as ready for review November 2, 2025 19:19
Copy link
Owner

@jiwonz jiwonz left a comment

Choose a reason for hiding this comment

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

Hello. thanks for the bug fix & improvement PR. Could you reply those request comments? i just wonder a little before merging this. i think they're fine.

Also, have you tested those changes properly?

local destination = targetDir.path:join(buildFile)
local parent = destination:parent()
if parent then
fs.writeDir(parent)
Copy link
Owner

Choose a reason for hiding this comment

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

Wasn't this written already in line 240 above?

Copy link
Contributor Author

@ewd3v ewd3v Nov 6, 2025

Choose a reason for hiding this comment

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

Well yes in most cases the parent dir for a build file would be the targetDir, but if you input "modules/something.luau" as a build file then the parent dir would be "modules". So that code just makes sure the modules dir exist under the targetDir before writing (as fs.copy requires it).

@ewd3v
Copy link
Contributor Author

ewd3v commented Nov 6, 2025

Realized this change also makes it so files from build_files that are not present in the includes in the pesde.toml wont get copied into the dist target directory.

I resolved this in 64fc1e9

@ewd3v
Copy link
Contributor Author

ewd3v commented Nov 6, 2025

Also, have you tested those changes properly?

I've run tests on a local playground which seems to work fine.
I've also used these changes on some of my projects with my fork.

@ewd3v ewd3v requested a review from jiwonz November 6, 2025 12:37
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.

2 participants