Use import/export to communicate between pubsweet modules
There are some places where pubsweet-cli uses relative paths to find pubsweet-server, e.g.
const cfPath = path.resolve(path.join(appPath, 'node_modules', 'pubsweet-server', 'config.js'))
or
path.resolve(process.cwd(), '.', 'node_modules', 'pubsweet-server')
This breaks when pubsweet-server is located somewhere else (e.g. in the top-level node_modules folder of a hoisted monorepo).
It should be possible to require
everything that other modules need from pubsweet-server without knowing where the files are located.