Skip to content

Commit

Permalink
add file-source handler (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDokuka authored Oct 4, 2024
1 parent 146e347 commit 4bd243b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public Stream<SourceFile> parseInputs(Iterable<Input> 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);
Expand Down

0 comments on commit 4bd243b

Please sign in to comment.