• 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.


    • contents: PackageJson

      the contents of the package.json that you'd like to transform

    • Optional options: Options

      optional Options which will control the transformation

    Returns PackageJson

    the transformed package.json contents

Generated using TypeDoc