Skip to content

fix: scope prepublishOnly's attw check to the node16 profile - #42

Merged
Mearman merged 1 commit into
mainfrom
fix/attw-prepublish-node16-profile
Sep 17, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/attw-prepublish-node16-profile

Conversation

@Mearman

@Mearman Mearman commented Sep 17, 2026

Copy link
Copy Markdown
Member

The v1.4.0 release (adding the new `cc-peer/alias-pool` subpath export) failed at the npm publish step: `attw --pack` defaults to its own "strict" profile, which includes node10 (pre-exports-field) resolution, and a genuine multi-entry subpath export cannot be resolved under node10 by design (legacy resolution has no concept of package exports beyond `main`/`types`). tsdown's own build-time attw check already targets node16 explicitly; this aligns the standalone prepublish check with the same, already-stated compatibility target.

semantic-release had already created and pushed the `v1.4.0` git tag and version-bump commit before the npm publish step failed, so no GitHub release or npm package exists for that version. The next successful release picks up from here.

Verified locally: `pnpm build && attw --pack --profile node16` and `publint` both pass clean.

attw --pack defaults to its own "strict" profile, which includes node10
(pre-exports-field) resolution, whereas tsdown's own build-time attw
check already targets node16 explicitly. A single "." export happened to
satisfy node10 resolution too, masking the mismatch, but a genuine
multi-entry subpath export (cc-peer/alias-pool) cannot be resolved under
node10 by design: legacy resolution has no concept of package exports
beyond "main"/"types". Passing --profile node16 aligns the standalone
prepublish check with the compatibility target this package already
states everywhere else.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-17T15:39:35.791562Z cc786aa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit 7ccde05 into main Sep 17, 2026
8 checks passed
@Mearman
Mearman deleted the fix/attw-prepublish-node16-profile branch September 17, 2026 15:43
@exadev

exadev Bot commented Sep 17, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@exadev exadev Bot added the released label Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant