ender-js/Ender — Issue #97: main script not included if dependencies exist in package.json
Author: tf
Created: 2011-11-10 13:54:13+00:00
State: open

Hi,

I'm experiencing the following problem when using `ender build` on my `package.json` files. As long as there are no dependencies listed inside the `package.json`, ender just packs the files listes under the `main` key. But soon as I add dependencies, those get concatenated correctly but my main files are no longer included.

This is rather sad, since I would like to simply require classes from my main file inside my testsuite. Even worse, I cannot simply add another script tag in my test runner to inlcude my main file manually since then the ender wrapper is missing which provides the `module.exports` variable. So I'd have to distinguish cases in my main file depending on whether `module` is defined or not.

Since the behavior seems not to be covered by the ender test suite, I wanted to ask if this really is the way it is supposed to work. Or maybe/hopefully it's just me doing something wrong.

Best
Tim