Returns the package.json of the current project. Repeated calls to this function will cause multiple accesses to the file system.
There is no way to safely cache reading the package.json file when any number of tools could modify it and you always want the current version of the file.
Optional
dir: stringoptionally override the directory to read from -- defaults to the current working directory
Public API for the packageJson namespace