Skip to content

Commit

Permalink
create js liker outpiut dir if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed Dec 17, 2023
1 parent 6f5b891 commit 7ffd085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler-plugin/src/test/scala/cc/ScalaJSSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ object ScalaJSSupport {
.map(replaceDotcCpsAsyncClasses(_))
.mkString(File.pathSeparator)

val outputDirPath = Paths.get(outputDir)
if (!outputDirPath.toFile.exists()) {
outputDirPath.toFile.mkdirs()
}

val linkScript = s"java -classpath ${jsClasspath} cc.ScalaJSLink ${jsClasspath} ${mainClass} ${outputDir}"
println("ScalaJSLink: linkScript: " + linkScript)
Expand Down

0 comments on commit 7ffd085

Please sign in to comment.