Home > @rushstack/node-core-library > IPackageJsonExports
IPackageJsonExports interface
This interface is part of the IPackageJson file format. It is used for the values of the "exports" field.
See Node.js documentation on Conditional Exports and Node.js documentation on Community Conditional Exports.
Signature:
export interface IPackageJsonExports
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | IPackageJsonExports | (Optional) This export is like IPackageJsonExports.node in that it matches for any NodeJS environment. This export is specifically for native C++ addons. | ||
string | IPackageJsonExports | (Optional) Any web browser environment. | ||
string | IPackageJsonExports | (Optional) This export matches as a fallback when no other conditions match. Because exports are evaluated in the order that they are specified in the | ||
string | IPackageJsonExports | (Optional) This export matches in development-only environments. This is always mutually exclusive with IPackageJsonExports.production. | ||
string | IPackageJsonExports | (Optional) This export matches when loaded via ESM syntax (i.e. - | ||
string | IPackageJsonExports | (Optional) This export matches for any NodeJS environment. | ||
string | IPackageJsonExports | (Optional) This export matches in production-only environments. This is always mutually exclusive with IPackageJsonExports.development. | ||
string | IPackageJsonExports | (Optional) This export matches when loaded via | ||
string | IPackageJsonExports | (Optional) This export matches when loaded by the typing system (i.e. - the TypeScript compiler). |