Yarn: Zip support

Created on 26 Oct 2016  路  8Comments  路  Source: yarnpkg/yarn

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.

cat-feature good first issue help wanted triaged

Most helpful comment

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.

All 8 comments

+1 for this feature

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.

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"
      ]
    }
}

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

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

+1

+1

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 ...
Was this page helpful?
0 / 5 - 0 ratings