LeoIannacone / npm2deb

tool to help debianize Node.js modules
GNU General Public License v3.0
46 stars 34 forks source link

please install pure js modules in /usr/share/nodejs #145

Closed kapouer closed 4 years ago

kapouer commented 5 years ago

this is supported since nodejs 10.12, so won't be a mess to backport.

  * Multiarch and DFHS:
    + patch adding --node-relative-path configuration variable
    + "/usr/lib/<$DEB_HOST_MULTIARCH>/nodejs" for c++ addons
    + "/usr/share/nodejs" for pure javascript modules
    + "/usr/lib/nodejs" for smooth migration of current modules
    + Expose those configuration variables in
      process.config.variables.node_relative_path
      process.config.variables.arch_triplet
    + In particular, if prefix is /usr/local all paths move there.
    + Fix test expecting lib/node, should be lib/nodejs.
    (Closes: #901474)
guimard commented 5 years ago

Then we should modify pkg-js-tools dependency to require version 0.7 at least (see #931675)

kapouer commented 5 years ago

An addon would typically have "gyp" or "nan" (or both) in devDependencies or in dependencies's package.json.

guimard commented 4 years ago

Fixed by #147