Skip to content

nit: reduce deps (and bump rimraf)#15

Open
sir-opti wants to merge 2 commits intoshocknet:mainfrom
sir-opti:nit/reduce-deps
Open

nit: reduce deps (and bump rimraf)#15
sir-opti wants to merge 2 commits intoshocknet:mainfrom
sir-opti:nit/reduce-deps

Conversation

@sir-opti
Copy link
Copy Markdown

@sir-opti sir-opti commented Mar 7, 2026

Minor nit that helps downstream SBOMs stay clean.


Because package dependencies propagate down to SDK consumers, both typescript and rimraf are unnecessarily installed as a runtime dependency for downstream users of the SDK (i.e. through including @shocknet/clink-sdk in our own dependencies.)

Because of (to my knowledge still not fully solved) npm/cli#1229 making interactions with non-packed git sources crappy when compiled sources are .gitignored, keeping everything needed for npm pack in dependencies has been a common solution. However, given proper .gitignore and .npmignore (you have this), using prepare instead of prepack could be feasible, as explained in that npm/cli issue. This would remove package pressure exerted to consuming implementations.


95daf27f4:

  • changes prepack to prepare and calls the correct script in GH actions
  • rimraf is only needed for build cleaning, moves it to devDependencies
  • typescript is only needed for compiling, moves it to devDependencies as well

060375d7:

  • since rimraf@^6.0.1 depends on a whole load of things, bump it to ^6.1.3 which is both cleaner and resolves a ton of npm audit complaints.

Thought that maybe this could help.

sir-opti added 2 commits March 7, 2026 05:00
- changing prepack to prepare directive retains git-sourcing but
  does not require build tools to be in production deps and call
  the correct script in actions
- rimraf is only needed for build cleaning
- typescript is only needed for compiling

this helps reducing downstream dependencies
fixes dependency audit reports:
- brace-expansion: GHSA-v6h2-p8h4-qcjw
- glob: GHSA-5j98-mcp5-4vw2
- minimatch:
  - GHSA-3ppc-4f35-3m26
  - GHSA-7r86-cg39-jmmj
  - GHSA-23c5-xmqv-rm74
@socket-security
Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedrimraf@​6.0.1 ⏵ 6.1.399 +110010087100

View full report

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