Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

@stephen-carter-at-sf stephen-carter-at-sf commented Sep 16, 2025

Background: internal developer found and issue depending on our engines:
image

Note that without this PR, some clients (unless they pull in @types/semver some other way) were unable to build their typescript code fully when that code depends on our PMD/Flow engines. This is because because our ./packages/*/dist/**/*.d.ts files that that we produce contain import statements to semver but semver doesn't bundle its own types.

While I was doing this I used ./packages/*/dist/**/*.d.ts to find all imports in our types files and found the following that needed attention:

"node:worker_threads" from code-analyzer-eslint-engine (already has @types/node in dependencies)
"semver" from code-analyzer-flow-engine (needs @types/semver)
"semver" from code-analyzer-pmd-engine (needs @types/semver)
"retire/lib/types" from code-analyzer-retirejs-engine (already has retirejs engine)
"node-stream-zip" from code-analyzer-retirejs-engine (already has node-stream-zip)

And it showed that only semver wasn't pulling in its own types.

…es that depend on it can be consumed by clients
@stephen-carter-at-sf stephen-carter-at-sf merged commit d3eb39d into dev Sep 16, 2025
10 of 13 checks passed
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.

3 participants