Home > @rushstack/package-extractor > IExtractorOptions > transformPackageJson
IExtractorOptions.transformPackageJson property
The pnpmfile configuration if using PNPM, otherwise undefined. The configuration will be used to transform the package.json prior to extraction.
Signature:
transformPackageJson?: (packageJson: IPackageJson) => IPackageJson;
Remarks
When Rush subspaces are enabled, this setting applies to default subspace only. To configure each subspace, use the IExtractorOptions.subspaces array instead. The two approaches cannot be combined.