mavennpmpackage

Npm package.json inheritance


Is there a mechanism in npm like parent pom in Maven. The goal is to have a common base configuration for scripts, dependencies, devDependencies. Not based on templates like yeoman or so, but based on a parent version. So that, any project that changes his parent version gets the changes in this parent automatically.


Solution

  • Currently there is no built-in npm mechanism to achieve this, and there's not likely to be one in the future.

    See the discussion here and this comment particularly.