yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Zip support

Open csvan opened this issue 9 years ago • 10 comments

Do you want to request a feature or report a bug? Feature What is the current behavior? Does not support zip files

Bower support has been dropped, but it would be nice to see Yarn support zip archives. This may be a corner case (and NPM has no such support), but it would make the tool more versatile particularly for people managing local dependencies.

csvan avatar Oct 26 '16 17:10 csvan

+1 for this feature

miscbits avatar Oct 26 '16 17:10 miscbits

It's very useful thing for some cases, especially for front-end devs. In one of my projects I am forced to choose between including code of third-party plugins for WYSIWYG editor into my project's repository or using Bower alongside with Yarn to maintain those dependencies via links to zip archives.

Serhii-the-Dev avatar Mar 23 '17 09:03 Serhii-the-Dev

Zip support is mandatory to use Yarn as a full Bower replacement.

In my bower.json file I am having the following dependency, which I cannot resolve with yarn (😢):

{
  "name": "sample-project",
  "dependencies": {
    "cryptojs": "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/crypto-js/CryptoJS%20v3.1.2.zip"
  },
  "exportsOverride": {
    "cryptojs": {
      "js": [
        "components/core.js",
        "components/lib-typedarrays.js",
        "components/md5.js",
        "components/enc-base64.js",
        "components/sha256.js"
      ]
    }
}

bennycode avatar Oct 28 '17 22:10 bennycode

Is there possible to download yarn package from yarnpkg (may be another mirrors) as ZIP ?

hellboy81 avatar Sep 07 '18 12:09 hellboy81

I'd love to ZIP support for yarn so it becomes a more versatile alternative to npm.

thasmo avatar Jan 26 '19 12:01 thasmo

+1

kostetskyroma avatar Sep 19 '19 09:09 kostetskyroma

+1

hanabi1224 avatar Mar 04 '20 12:03 hanabi1224

I wish there was a zip option that would allow to pack and publish to Google Cloud Functions (which doesn't accept .tgz files):

yarn pack --zip            # or, yarn pack --out=package.zip
gcloud functions deploy --source=package.zip ...

koistya avatar Apr 10 '20 10:04 koistya

+1

torblerone avatar Apr 13 '21 10:04 torblerone

It seems tarball is supported, is that right?

https://yarnpkg.com/protocol/file#tarball-based-links

dobesv avatar Apr 02 '25 23:04 dobesv