yarnpkg/yarn

Publish local tarball to offline mirror

Open

#2 381 ouverte le 4 janv. 2017

Voir sur GitHub
 (3 commentaires) (3 réactions) (0 assignés)JavaScript (2 731 forks)batch import
cat-featuregood first issuehelp wantedtriaged

Métriques du dépôt

Stars
 (41 514 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

I have a yarn offline mirror and let the config point to the offline mirror. Then put some of my tarballs for packages in the mirror.

How can I use "yarn add --offline" to install those packages?

There are versions in the tarball paths and install from tarball directly cannot resolve the version. Is it possible to allow me to install that like installing other npm packages? and I dont need to specific the version when consuming it if the version info is well config-ed in package.json.

Will update yarn.lock may help? but I cannot figure out how to generate the hash for each package resolved line.

Guide contributeur