I have the following directory structure
./app1/app1.js
./app1/package.json
./app1/node_modules
./app2/app2.js
./app2/package.json
./app2/node_modules
./shared/share.js
Both app1 and app2 pull in share.js
// app1.js
const share = require('../shared/share.js')
share.js
uses a module defined in both app1 and app2's package.json
// share.js
const toml = require('toml')
When running node app1.js
Error: Cannot find module 'toml'
How can I share the share.js file between these apps? I'd prefer not to use symlinks if possible.