Skip to content

fix(package): place src first in generated exports entries - #40

Merged
jxom merged 1 commit into
mainfrom
jxom/src-first-exports
May 22, 2026
Merged

jxom merged 1 commit into
mainfrom
jxom/src-first-exports

Conversation

@jxom

@jxom jxom commented May 22, 2026

Copy link
Copy Markdown
Member

Reordered generated exports entries to place src first so the dev-time src condition resolves before fallback conditions.

Wildcard entries (./foo/*) and .d.ts-only entries keep types first because publint's EXPORTS_TYPES_SHOULD_BE_FIRST rule fires strictly on those shapes. Comments next to each case explain why.

@pkg-pr-new

pkg-pr-new Bot commented May 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/zile@40

commit: 508698a

@jxom
jxom merged commit 9a5a2f8 into main May 22, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant