ClojureScript

Add support for package tarballs in :npm-deps

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: 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.

Activity

Hide
Jannis Pohlmann added a comment -

This patch implements the feature and adds tests for indexing and building with a tarball dependency.

Show
Jannis Pohlmann added a comment - This patch implements the feature and adds tests for indexing and building with a tarball dependency.
Hide
Thomas Heller added a comment -

What benefit does this provide over just running npm install ./some.tgz?

I don't think this is a good idea.

Show
Thomas Heller added a comment - What benefit does this provide over just running npm install ./some.tgz? I don't think this is a good idea.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: