@pakk/core
Version:
The core library of pakk, that can manage your package.json for library development.
21 lines • 997 B
TypeScript
import { InternalModuleFormat } from 'rollup';
import { PackageJsonKindType } from '../../package-json/package-json-kind.enum.js';
export interface PackageExportPathContext {
/**
* When 'packageJsonKind' is set to DEVELOPMENT and this context is used
* to calculate the paths towards the source files, 'formats' and
* 'fileNameFn' are not used.
*/
packageJsonKind: PackageJsonKindType;
/**
* The kind of files an export can point to. It's used to guess/calculate how
* the fileName will change once it ends up in the outDir after building.
* If it's undefined it will not do any renaming and will use the source name.
* Useful when targeting the source or for files that are not being renamed
* during processing like .svelte files.
*
* ? Out of InternalModuleFormat it really is only LibraryFormats that we care about
*/
format: InternalModuleFormat;
}
//# sourceMappingURL=package-export-path-context.interface.d.ts.map