Yes, a package.json is good to get the required dependencies. This article is about possible dependencies that help in cases where you all the possible would mean a huge load on the system.
A good example is Consolidate, which provides a consistent API to various template libraries. You wouldn't want to force installation of all the unused libraries.