Options: {
    relativePathRoot?: string;
    removeType?: boolean;

Options that control how the package.json contents are transformed.

Type declaration

  • Optional relativePathRoot?: string

    If passed, this is the new root for relative paths in main, types, bin, and exports, relative to the old root. Typically this is the directory where the output will be written relative to the directory where the input file is.

    You only need to specify this manually if using transformPackageJsonContents as it will be automatically derived from the paths passed in when using transformPackageJson

    If not specified, relative paths are left alone.

  • Optional removeType?: boolean

    If true, strip the type field out when transforming.

Generated using TypeDoc