[psc-bundle] Verify entry points exist#2286
Conversation
Throws an error when an entry point could not be found in the input modules.
92d7c13 to
40e9fec
Compare
|
Does this address the case where |
|
Could you elaborate? What command should I try? I'm not all that familiar with |
|
I think @hdgarrood is saying that |
|
Right, exactly. Also I'm a bit surprised it's necessary to check entry points, come to think of it. What happens with 0.9.3 if you specify a nonexistent entry point with ‘--module`? (Also 'entry point' doesn't quite feel right; is that what we usually refer to modules specified with the |
This originally came up because someone on IRC copied an example file to
At least in the README for psc-bundle we do https://github.com/purescript/purescript/tree/master/psc-bundle#usage. |
|
Ah great, thanks for answering my questions! In that case this looks great, +1: to merge. The wording issue with 'entry point' isn't a big deal and can be addressed separately anyway (if it needs addressing at all). |
|
Thanks! |
Throws an error when an entry point could not be found in the input
modules.
Fixes #1755
I've checked for all the entry points instead of the passed
--mainmodule here. I'm happy to change that, but it seemed like the more sensible choice to me.