package --js --library
(incorrectly) requires a main class to be present.
#915
Labels
bug
Something isn't working
Version(s)
0.1.3, 0.1.4
Describe the bug
scala-cli package --js --library test.scala
produces[error] No main class found
if there is no main class in test.scala.Thus, no output is generated at all.
To Reproduce
sample
test.scala
for the above command.Expected behaviour
This works with
scala-cli package --library test.scala
(i.e., no--js
) and js packaging also works if one provides an empty main class, thus I would expect the js library to produce working output even if there is no main class.The text was updated successfully, but these errors were encountered: