refactor(npm): rely on package.json for unpacking

Avoid multiple directories for packing different types of dependencies, and rely on package.json for deciding which dependencies to unpack.