Before the onlyDirectDependenciesFilter is initialized for the
devDependencies, the packageJsonContents.devDependencies needs to be
checked instead of the packageJsonContents.dependencies, otherwise
if there are not any dependencies in the package json, the output
will be empty.
Before the onlyDirectDependenciesFilter is initialized for the devDependencies, the packageJsonContents.devDependencies needs to be checked instead of the packageJsonContents.dependencies, otherwise if there are not any dependencies in the package json, the output will be empty.