Open bitjson opened 5 years ago
We don't have one, but it would be very easy to implement a plugin on the v2
I need this. I wonder why noone else reported here
has this ever been added? I'm switching a project from npm to yarn now. The old version uses npm pack dist/
to build the project into the /dist folder. What would be the current equivalent of this for yarn?
I think this is a feature request, but maybe I'm just missing some documentation.
What is the current behavior?
yarn pack
doesn't accept an argument. Soyarn pack
matchesnpm pack
, but there doesn't seem to be a way to replicatenpm pack [package-identifier]
with Yarn.What is the expected behavior?
You can see the npm-pack documentation here.
Does Yarn have some CLI method of fetching the gzipped tarball? My workaround is:
npm pack [identifier from yarn.lock]
I don't think Yarn needs to provide the same API as NPM here (especially because "pack" is a strange place to put a fetching function), but it would be helpful to have the option to pull the raw tarball out of Yarn without installing. Something like
yarn fetch [identifier]
.I'm on yarn version v1.13.0.