mill-scalablytyped
mill-scalablytyped copied to clipboard
scalablyTypedBasePath default
Would it make more sense for scalablyTypedBasePath
to default to millSourcePath / os.up
instead of T.workspace
?
Currently if you use mill-scalablytyped
in a sub or foreign module it will look in the root module for the package.json
.
However if you are trying to wrap JS libs it will look in the root project which ruins the encapsulation. I defer to you superior JavaScript knowledge in this. I can work around by:
def scalablyTypedBasePath = T{ millSourcePath / os.up }
(This is effectively T.workspace
in a simple project)