PackageJson: Record<string, unknown> & {
    bin?: string | Record<string, string>;
    exports?: string | string[] | Nested<string>;
    main?: string;
    types?: string;
}

A simplified type describing the schema of package.json files. Here we only define fields that this library touches.

Type declaration

  • Optional bin?: string | Record<string, string>
  • Optional exports?: string | string[] | Nested<string>
  • Optional main?: string
  • Optional types?: string