Skip to content

Interface: ExportsOptions

Defined in: src/features/exports.ts:14

Properties

all?

ts
optional all: boolean;

Defined in: src/features/exports.ts:25

Exports for all files.


customExports()?

ts
optional customExports: (exports, context) => Awaitable<Record<string, any>>;

Defined in: src/features/exports.ts:27

Parameters

exports

Record<string, any>

context
chunks

TsdownChunks

isPublish

boolean

outDir

string

pkg

PackageJson

Returns

Awaitable<Record<string, any>>


devExports?

ts
optional devExports: string | boolean;

Defined in: src/features/exports.ts:20

Generate exports that link to source code during development.

  • string: add as a custom condition.
  • true: all conditions point to source files, and add dist exports to publishConfig.

Released under the MIT License.