Uploaded image for project: 'ClojureScript'
  1. CLJS-2622

Add support for package tarballs in :npm-deps

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 1.10.238
    • Fix versions: None
    • Labels:

      Description

      NPM supports installing packages from tarballs via

      {npm install /path/to/foo.tgz}

      . This can be useful for trying a local (modified) version of a package, or generally any unpublished and/or private JS project; all that's needed is a

      {package.json}

      and a

      {.js}

      file and

      {npm pack}

      can generate a tarball.

      It would be nice if ClojureScript would support this as well, through {:npm-deps}.

      Proposed syntax:

      {:npm-deps {"/path/to/tarball.tgz" "0.1.0"
                  "/path/to/bar.tgz" ""}}
      

      The version isn't needed with tarballs, so it could be anything.

      I have the code for this working but I still want to add a test before I submit a patch.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jannis Jannis Pohlmann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: