Writes the package.json file to the given directory.
Directory where the package.json file will be written.
Package.json file to write.
Writes the package.json file to the given directory.