Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scalablyTypedImportTask to also check for IVY_HOME #36

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
out
node_modules
.bsp
.bloop
.metals
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ trait ScalablyTyped extends ScalaJSModule with VersionSpecific {
private def scalablyTypedImportTask = T {
packageJsonSource()
val ivyLocal = sys.props
.get("ivy.home")
.map(os.Path(_))
.getOrElse(os.home / ".ivy2") / "local"
.get("ivy.home").map(os.Path(_))
.getOrElse(sys.env.get("IVY_HOME").map(os.Path(_))
.getOrElse(os.home / ".ivy2")) / "local"

val targetPath = T.dest / "out"

Expand Down