Skip to content

Feature request: flatten git clones in current directory, and build node_modules tree with links #16

Description

@thomas-riccardi

It would be great to have an option to get all git clone repositories done in the current directory, instead of somewhere down the dependency tree.
This way we would have a nice development environment with deduped dependencies, and to make things still work at runtime, use symbolic links to keep the node_modules tree working.

To implement the links either we do it manually, or we can hopefully re-use npm link and force a prefix.

Limitations: the deduping is great until some modules depend on the same cloned module but with incompatible versions. Let's ignore this for now.
How does gpm currently handles clones for versions ? I haven't found code that checkouts the version compatible with what the parent asked (and I don't know how to implement that without assuming some sort of publish/tagging convention, which will necessarily not work in all cases)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions