Take the contents of a package.json file and optional Options and
apply the transformations, returning the results. In general you won't use
this directly and you'll probably want to use transformPackageJson
instead, unless you have unique requirements around loading the
package.json contents from disk, writing the new contents out, or
calculating the new Options.relativePathRoot.
Take the contents of a
package.json
file and optional Options and apply the transformations, returning the results. In general you won't use this directly and you'll probably want to use transformPackageJson instead, unless you have unique requirements around loading thepackage.json
contents from disk, writing the new contents out, or calculating the new Options.relativePathRoot.