All packages (top-level and dependencies) go in the __bikeshed__/
directory where they are versioned.
node_modules/__bikeshed__/[email protected]/
node_modules/__bikeshed__/[email protected]/
node_modules/__bikeshed__/[email protected]/
node_modules/__bikeshed__/[email protected]/
When you install a package, it also creates a top-level entry which redirects to a specific version in the __bikeshed__/
directory.
This could be done with softlinks or auto-generated files. (require(x)
will load for x.js
).