Skip to content

Commit 5bb1ead

Browse files
committed
feat: call rewatch-legacy
1 parent b4945ea commit 5bb1ead

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/helpers.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,13 @@ pub fn create_build_path(build_path: &str) {
148148

149149
pub fn get_rescript_legacy(root_path: &str, workspace_root: Option<String>) -> String {
150150
match (
151-
PathBuf::from(format!("{}/node_modules/rescript/rescript", root_path)).canonicalize(),
151+
PathBuf::from(format!("{}/node_modules/rescript/rescript-legacy", root_path)).canonicalize(),
152152
workspace_root.map(|workspace_root| {
153-
PathBuf::from(format!("{}/node_modules/rescript/rescript", workspace_root)).canonicalize()
153+
PathBuf::from(format!(
154+
"{}/node_modules/rescript/rescript-legacy",
155+
workspace_root
156+
))
157+
.canonicalize()
154158
}),
155159
) {
156160
(Ok(path), _) => path,

0 commit comments

Comments
 (0)