Add support for package tarballs in :npm-deps

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:

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.

Environment

None

Activity

Show:
Jannis Pohlmann
March 7, 2018, 1:18 PM

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

Thomas Heller
April 30, 2018, 8:53 PM

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

I don't think this is a good idea.

Assignee

Unassigned

Reporter

Jannis Pohlmann

Labels

Approval

None

Patch

None

Affects versions

Priority

Major
Configure