shared-module-nextjs

Uses npm workspaces to reference modules.

https://docs.npmjs.com/cli/v7/using-npm/workspaces

Uses tsConfig paths to alias the parent directory.

https://www.typescriptlang.org/tsconfig#paths

Todo

Notes

Most likely the simplest option is to just have one node_modules in the root directory which list all deps. Each subfolder can have it's npm commands e.g. npm run dev.