Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed Mar 8, 2024
1 parent 5f93ab9 commit 9096227
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,22 @@ pub fn get_compiler_args(path: &str) -> String {
&rescript_version,
&workspace_root,
);
let is_interface = filename.ends_with("i");
let has_interface = if is_interface {
true
} else {
let mut interface_filename = filename.to_string();
interface_filename.push('i');
PathBuf::from(&interface_filename).exists()
};
let compiler_args = compiler_args(
package,
root_package,
&ast_path,
&rescript_version,
&relative_filename,
// is_interface,
false,
// has_interface,
false,
is_interface,
has_interface,
&packages,
);
serde_json::to_string_pretty(&CompilerArgs {
Expand Down

0 comments on commit 9096227

Please sign in to comment.