ender-js/Ender — Issue #119: main file requires other dependencies in package.json
Author: andrewplummer
Created: 2012-01-24 14:58:01+00:00
State: open

Sorry, this is probably a simplistic question but I wasn't having any luck searching the site or Issues. Here is my full package.json:

```
{
"name": "sugar",
"version": "1.2.0",
"description": "A Javascript library for working with native objects.",
"keywords": ["functional", "utility", "ender"],
"homepage": "http://sugarjs.com/",
"author": "Andrew Plummer",
"main": "./lib/main",
"directories" : {"lib" : "./lib"},
"repository" : {"type" : "git", "url": "https://github.com/andrewplummer/Sugar.git"},
"engines" : {"node" : ">= 0.4.0"}
}

```

`main` in turn requires dependent modules:

```
require('./core');
require('./dates');
require('./inflections');
```

This is what is required for my npm package, and is working correctly... is there some special trick to getting Ender to see into this? It instead is trying to require the files directly after running `ender build`, which of course don't exist. I'm thinking (hoping) there is something simplistic I'm missing, either about Ender, or CommonJS modules...