diff --git a/build.gradle.kts b/build.gradle.kts index c3f814c6..06027a9c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ dependencies { implementation(platform("org.openrewrite:rewrite-bom:$latest")) implementation("org.openrewrite:rewrite-java") - implementation("org.openrewrite:rewrite-remote-java:latest.integration") { + implementation("org.openrewrite:rewrite-remote-java:$latest") { exclude(group = "org.openrewrite", module = "rewrite-javascript") } diff --git a/src/main/java/org/openrewrite/javascript/JavaScriptParser.java b/src/main/java/org/openrewrite/javascript/JavaScriptParser.java index 56240d6f..fc45f6e1 100644 --- a/src/main/java/org/openrewrite/javascript/JavaScriptParser.java +++ b/src/main/java/org/openrewrite/javascript/JavaScriptParser.java @@ -100,6 +100,7 @@ public Stream parseInputs(Iterable inputs, @Nullable Path rel } else { generator.writeString("parse-javascript-file"); generator.writeString(input.getPath().toString()); + generator.writeString(relativeTo.toString()); } }, parser -> { Tree tree = new ReceiverContext(remotingContext.newReceiver(parser), remotingContext).receiveTree(null);