Skip to content

chore: remove redundant @types/node from workspace packages#906

Merged
gibiw merged 1 commit intomainfrom
chore/remove-redundant-types-node
Mar 4, 2026
Merged

chore: remove redundant @types/node from workspace packages#906
gibiw merged 1 commit intomainfrom
chore/remove-redundant-types-node

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Mar 4, 2026

Summary

  • Remove @types/node from devDependencies in 5 packages (qase-api-client, qase-api-v2-client, qase-javascript-commons, qase-mocha, qase-vitest)
  • Remove @types/node from dependencies in qase-wdio (was incorrectly in production deps)
  • All packages now use the single hoisted @types/node@25.x from root

Why

Each package pinned its own @types/node version (12.x / 20.x), conflicting with the root-hoisted 25.x. This caused npm to create local node_modules directories in every package, duplicating the dependency tree.

No user impact

  • 5 packages: removed from devDependencies — not installed by consumers
  • qase-wdio: @types/node was in dependencies by mistake (type definitions are not needed at runtime). Users already have @types/node through their own projects

Test plan

  • All packages build successfully
  • All package tests pass
  • No local node_modules/@types/node in any workspace package

@gibiw gibiw changed the base branch from master to main March 4, 2026 17:34
…ages

- Remove @types/node from 6 packages (all now use hoisted version)
- Fix qase-wdio: @types/node was incorrectly in dependencies
- Update jest 27 -> 29 in qase-api-client and qase-api-v2-client
  to match root and eliminate local node_modules duplication

Remaining local node_modules (different major versions, can't dedupe):
- qase-javascript-commons: ajv@8 vs root ajv@6 (from eslint)
- qase-wdio: strip-ansi@7 vs root strip-ansi@6
@gibiw gibiw force-pushed the chore/remove-redundant-types-node branch from a3aea17 to 5db2d19 Compare March 4, 2026 17:52
@gibiw gibiw merged commit fdd4f92 into main Mar 4, 2026
48 checks passed
@gibiw gibiw deleted the chore/remove-redundant-types-node branch March 4, 2026 18:57
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