Optional
relativeIf 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
removeIf true
, strip the type
field out when transforming.
Options that control how the
package.json
contents are transformed.