Skip to content

ci: skip lifecycle scripts when installing on legacy Node.js versions - #213

Merged
evenstensberg merged 1 commit into
mainfrom
fix/legacy-node-install
Aug 26, 2026
Merged

ci: skip lifecycle scripts when installing on legacy Node.js versions#213
evenstensberg merged 1 commit into
mainfrom
fix/legacy-node-install

Conversation

@evenstensberg

@evenstensberg evenstensberg commented Aug 26, 2026

Copy link
Copy Markdown
Member

Ignores postinstall scripts that invokes npm run prepare and explicitly run npm run build:code for legacy nodejs versions that doesnt have types.

@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.40%. Comparing base (0102513) to head (33269ef).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #213   +/-   ##
=======================================
  Coverage   95.40%   95.40%           
=======================================
  Files           9        9           
  Lines         848      848           
  Branches      360      361    +1     
=======================================
  Hits          809      809           
  Misses         35       35           
  Partials        4        4           
Flag Coverage Δ
integration 95.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

This comment was marked as resolved.

The legacy test lanes pin `typescript@4`, and `npm i` runs `prepare` ->
`build` -> `build:types`. Recent `@types/node` releases ship
`web-globals/streams.d.ts`, which only type-checks under TypeScript 5, so
the install failed with TS2502 before any test could run.

Those lanes only run Jest against `src`, so the build is not needed there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@evenstensberg
evenstensberg force-pushed the fix/legacy-node-install branch from 94d2f63 to 33269ef Compare August 26, 2026 20:04
@evenstensberg
evenstensberg merged commit aa03277 into main Aug 26, 2026
30 checks passed
@evenstensberg
evenstensberg deleted the fix/legacy-node-install branch August 26, 2026 20:08
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.

2 participants