We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89316aa commit 391f785Copy full SHA for 391f785
rewatch/src/helpers.rs
@@ -152,17 +152,18 @@ pub fn create_path_for_path(path: &Path) {
152
153
pub fn get_bsc(root_path: &str, workspace_root: Option<String>) -> String {
154
let subfolder = match (std::env::consts::OS, std::env::consts::ARCH) {
155
- ("macos", "aarch64") => "darwinarm64",
156
- ("macos", _) => "darwin",
157
- ("linux", "aarch64") => "linuxarm64",
158
- ("linux", _) => "linux",
159
- ("windows", _) => "win32",
+ ("macos", "aarch64") => "darwin-arm64",
+ ("macos", _) => "darwin-x64",
+ ("linux", "aarch64") => "linux-arm64",
+ ("linux", _) => "linux-x64",
+ ("windows", "aarch64") => "win-arm64",
160
+ ("windows", _) => "win-x64",
161
_ => panic!("Unsupported architecture"),
162
};
163
164
match (
165
PathBuf::from(format!(
- "{}/node_modules/rescript/{}/bsc.exe",
166
+ "{}/node_modules/@rescript/{}/bin/bsc.exe",
167
root_path, subfolder
168
))
169
.canonicalize(),
0 commit comments