elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

`elm-package.json` should pick up the correct source directory. #192

Open ghost opened 6 years ago

ghost commented 6 years ago

When I start an Elm project, I usually put all Elm code in a src/ directory. When I run elm make src/Main.elm initially in a new project folder, I expect to find "source-directories": ["src"] in the newly created elm-package.json. But instead I have to add src/ manually every time. I have stumbled over this a couple of times and wondered why elm make doesn't find my other modules although they are in the same directory as Main.elm.

Wouldn't it be reasonable to add the relative path to the folder, that contains the main Elm module, to the newly created elm-package.json by default? Or would this break other use cases?