Closed
Description
digging into the bug from #303 has made me consider if we should enforce that cargo build
build only the lib, by passing --lib
. this leads to a few questions:
- are the legitmate reasons to write an binary application that is compiled by wasm-pack and published to npm? i'm thinking that potentially devtools e.g. a CLI application may actually be a use case we want?
- this begs the question... does wasm-pack even work at all right now for that scenario, what would the requirements be? i'm pretty sure that the
package.json
keys we are using and that we don't put anything in a bin directory would suggest it wouldn't. - begging the final question: is this something we want to support? if so, what would an interface for this look like?
EDIT: i want us to enforce lib only until we can reasonable answer the rest of these questions, hence #329