Skip to content

Add browser and package resolution checks - #13

Merged
mattgle merged 2 commits into
devfrom
feat/platform-neutrality-proof
Jul 31, 2026
Merged

mattgle merged 2 commits into
devfrom
feat/platform-neutrality-proof

Conversation

@mattgle

@mattgle mattgle commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

The package targets the browser, but nothing verified it stayed that way. A dependency pulling in a Node builtin would only surface downstream.

Adds two checks, both wired into CI:

  • check:browser bundles the package entry with esbuild for a browser platform and fails on any Node builtin.
  • check:package runs publint against the packed tarball.

@mattgle mattgle self-assigned this Jul 30, 2026
@mattgle
mattgle requested a review from bhflm July 30, 2026 16:26
@mattgle
mattgle marked this pull request as ready for review July 30, 2026 16:26
@bhflm

bhflm commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

should this check either fail on package hygiene or come with a files allowlist? right now publint passes while still saying we're publishing tests/config, and npm pack --dry-run still includes .github, eslint config, ts sources, tests, and tsconfig.json.

@mattgle
mattgle merged commit ba0960f into dev Jul 31, 2026
1 check passed
@mattgle
mattgle deleted the feat/platform-neutrality-proof branch July 31, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants