Add the `main` setting to `package.json`.

Howdy @tb - this change allowed me to put `factory` into my `package.json` file and `require` it.