We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c859c44 commit 9b5797fCopy full SHA for 9b5797f
src/luaumb.cpp
@@ -67,7 +67,8 @@ int main(int argc, char** argv) {
67
}
68
69
70
- if (std::optional<std::string> config_file = readFile(module_path.path.replace_filename(Luau::kConfigName).string())) {
+ const std::filesystem::path config_file_path = module_path.path.parent_path() / Luau::kConfigName;
71
+ if (std::optional<std::string> config_file = readFile(config_file_path.string())) {
72
Luau::ConfigOptions config_option = {false, std::optional<Luau::ConfigOptions::AliasOptions>({config_file_relative_path, true})};
73
std::optional<std::string> error = Luau::parseConfig(*config_file, config, config_option);
74
0 commit comments