Skip to content

chore: adding in build validation#1651

Open
jaredwray wants to merge 2 commits into
mainfrom
chore-adding-in-build-validation
Open

chore: adding in build validation#1651
jaredwray wants to merge 2 commits into
mainfrom
chore-adding-in-build-validation

Conversation

@jaredwray
Copy link
Copy Markdown
Owner

@jaredwray jaredwray commented Jun 3, 2026

Please check if the PR fulfills these requirements

  • Followed the Contributing guidelines and Code of Conduct
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
chore: adding in build validation

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jun 3, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpublint@​0.3.211001008191100
Added@​arethetypeswrong/​cli@​0.18.310010010087100

View full report

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a build validation harness script (scripts/test-build.mjs) along with a new test:build script in package.json to verify exports-path existence, runtime load and export parity, and packaging/types compatibility using publint and @arethetypeswrong/cli. Feedback on the validation script identifies a potential runtime crash (TypeError) if a CommonJS module resolves to null, undefined, or a primitive, as well as a false positive error when a CommonJS module directly exports a function. A code suggestion is provided to safely handle these edge cases.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread scripts/test-build.mjs Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (069f734) to head (e80a9da).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1651   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         2688      2688           
  Branches       593       595    +2     
=========================================
  Hits          2688      2688           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Guard the CJS runtime check against modules that resolve to null,
undefined, or a primitive (avoiding a TypeError on `Object.keys`/`in`),
and correctly treat a bare function export (`module.exports = fn`) as a
valid export rather than flagging "exposes no exports".

Addresses review feedback on PR #1651.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 013c670ba8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/test-build.mjs
Comment thread scripts/test-build.mjs
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