Skip to content

feat: detect and display install scripts#82

Merged
danielroe merged 6 commits intonpmx-dev:mainfrom
Flo0806:feat/detect-npx-deps
Jan 26, 2026
Merged

feat: detect and display install scripts#82
danielroe merged 6 commits intonpmx-dev:mainfrom
Flo0806:feat/detect-npx-deps

Conversation

@Flo0806
Copy link
Collaborator

@Flo0806 Flo0806 commented Jan 25, 2026

Closed: #51


Summary

  • Show install scripts (preinstall, install, postinstall) on package pages with warning indicator
  • Extract and display npx packages called within those scripts
  • Keyboard accessible: script content expands on focus

Changes

  • New PackageInstallScripts component with collapsible npx packages list
  • New install-scripts.ts utility for script detection and npx extraction
  • Shared getVersionClass helper in useNpmRegistry
  • Updated types to include installScripts per version

Tests

  • Write unit tests

@vercel
Copy link

vercel bot commented Jan 25, 2026

@Flo0806 is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 26, 2026 11:32am

Request Review

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

thank you! ❤️

might think about moving it up to be more prominent 🤔

@danielroe danielroe merged commit 1ffdc05 into npmx-dev:main Jan 26, 2026
8 checks passed
vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
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.

detect npx-delegated runtime dependencies

2 participants