elm-lang / elm-package

Command line tool to share Elm libraries
BSD 3-Clause "New" or "Revised" License
213 stars 66 forks source link

Allow publishing a package living in a git repository subfolder #297

Open n1k0 opened 6 years ago

n1k0 commented 6 years ago

elm-package 0.18.0

I've just successfully published a package, but when adding it as a dependency in another project, I'm getting this error:

elm-make: elm-stuff/packages/allo-media/koivu/1.0.0/elm-package.json: openBinaryFile: does not exist (No such file or directory)`

And indeed, if I look into this path, the whole repository has been packaged!

So is there a way to specify what the package root is? Or is it just required to have an Elm package code living at the root of its repo?

In any case, I think this is a bug as this kind of broken package should never have made its way to the Elm package repository.