I've been working on a few updates for the nodejs-packaging tools which
I plan to build in rawhide in the next few days.
The first change is to add a --move switch to %nodejs_fixdep which
allows a dependency to be moved to a different section while preserving
it's version. So, for example:
%nodejs_fixdep --dev --move nan
Will move the nan dependency to devDependencies - this is actually a
real use case because we only need it for build but it will normally be
in the main dependencies so that that npm can build a binary module when
installing it.
You can also move things to/from optionalDependencies in the same way.
The second change is to add a --optional switch to %nodejs_symlink_deps
to allow optional dependencies to be included.
The final planned changed, and the one that may be controversial, is to
start generating Suggests dependencies for anything listed as optional
in the package.json file.
There is actually a use case for that (BZ#1290781) and I personally
think it's the right thing to do anyway, but I'm interested to hear what
other people think before I go ahead with that.
Tom
--
Tom Hughes (tom(a)compton.nu)
http://compton.nu/