bug in `pubsweet add` for local module
hephaestus:someapp rik$ pubsweet add ~/c/coko/pubsweet-components/InkBackend
info: Installing 1 components...
info: Adding 1 components to config
someapp@ /Users/rik/c/coko/someapp
└─┬ pubsweet-component-ink-backend@0.0.2
├─┬ promise-retry@1.1.1
│ ├── err-code@1.1.1
│ └── retry@0.10.0
├─┬ request-promise-native@1.0.3
│ ├── request-promise-core@1.1.1
│ └── stealthy-require@1.0.0
└─┬ temp@0.8.3
└── rimraf@2.2.8
info: All 1 components installed
Adding the component seems to work, but then...
hephaestus:someapp rik$ pubsweet run --dev
info: Starting PubSweet app: /Users/rik/c/coko/someapp
info: App /Users/rik/c/coko/someapp started.
info: The app will be kept running, even if errors occur, until you stop it.
info: To stop the app use ctrl-C
info: Logs will be written to /Users/rik/c/coko/someapp/logs/dev/{stdout, stderr}.log
module.js:471
throw err;
^
Error: Cannot find module '/Users/rik/c/coko/someapp/node_modules/Users/rik/c/coko/pubsweet-components/InkFrontend'
The problem is that the command sticks the user-provided path into the config directly, but it needs to read package.json for each added component to extract the module name, then add that name to the config.