[2026-07] Fix preact entry points; validate package.json integrity in CI (publint + attw) - #4649
Open
henryStelle wants to merge 1 commit into
Open
[2026-07] Fix preact entry points; validate package.json integrity in CI (publint + attw)#4649henryStelle wants to merge 1 commit into
henryStelle wants to merge 1 commit into
Conversation
- Add a typesVersions entry for ./preact so its types resolve under moduleResolution 'node' (node10), matching checkout/preact and customer-account/preact. - Remove the dead ./point-of-sale/preact exports entry, which points at files that are never built or published. - Add publint and @arethetypeswrong/cli as devDependencies with package:publint / package:attw scripts (attw ignores the pre-existing, harmless false-cjs rule). - Run both tools in CI after the build so entry-point regressions fail the PR. Backport of e62b515 (#4645) to 2026-07. Assisted-By: devx/09e297fa-f87b-4f47-8683-6c71df04a146
Contributor
|
This PR targets a stable release branch ( When you open the forward-port PR, include a line like this in its body so the Accepted formats (comma-separated for multiple):
If a forward-port isn't needed (e.g., the change is stable-only), you can remove the |
2 tasks
henryStelle
marked this pull request as ready for review
August 21, 2026 20:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
typesVersionsentry for./preactso@shopify/ui-extensions/preacttypes resolve undermoduleResolution: "node"(node10), matching the existingcheckout/preactandcustomer-account/preactentries../point-of-sale/preactexport, which points at files that are never built or published.package:publint/package:attwscripts and run them in CI after the build, with attw ignoring the pre-existing, harmlessfalse-cjsrule (ESM types declared as.d.tsinstead of.d.mts).Why
import "@shopify/ui-extensions/preact"is required for signal-driven re-rendering, but its types don't resolve under node10 module resolution, which the generated extension templates use. The new CI checks fail with these fixes reverted and pass with them applied, preventing both classes of regression (unshipped entry-point files and missingtypesVersionsparity).Backport of #4645 to
2026-07.