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.
Parameters
Optionaldir: string
optionally override the directory to read from -- defaults to the current working directory
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.