Open ramasilveyra opened 7 years ago
We can use the npm scripts preinstall
and postinstall
to transform the custom gitpkg semver syntax to git deps syntax. Eg: gitpkg:private:^1.0.0
=> git@github.com:ramasilveyra/private-registry.git#some-package-v1.5.0-gitpkg
Long git tags are awful:
maybe instead we could use the
gitpkg:
shortcut that infers the gitpkg registry from the fieldgitpkg.registry
:even we could have multiples gitpkg registries:
For semver ranges if we can make the git tag name to be the same of the package even for scoped packages (see https://github.com/ramasilveyra/gitpkg/issues/4) the work on the npm client will be:
ls-remote
.