Skip to content

Make sure extensions use official npm registry - #19911

Merged
mathieudutour merged 1 commit into
mainfrom
f/official-npm-registry
Jun 19, 2025
Merged

mathieudutour merged 1 commit into
mainfrom
f/official-npm-registry

Conversation

@mathieudutour

Copy link
Copy Markdown
Member

Description

Screencast

Checklist

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PR Summary

This PR standardizes npm registry usage across multiple extensions but introduces problematic type definition updates that could cause compatibility issues.

  • Updates to @types/node (22.13.10) and @types/react (19.0.10) are invalid as they exceed current stable versions of Node.js and React
  • Removes unnecessary react-devtools dependency across multiple extensions as Raycast provides built-in dev tools
  • The type change in chatgo/src/hooks/useChat.tsx improves type safety by correctly using NodeJS.Timeout
  • The MarginNote extension description contains a typo ('Extensition')
  • Type definition mismatches could lead to compilation issues despite code working at runtime

27 files reviewed, 2 comments
Edit PR Review Bot Settings | Greptile

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

logic: writeFile callback continues execution without waiting for error toast to complete due to async callback. This could lead to race conditions where actualPath is returned before error handling completes

Comment thread extensions/marginnote/package.json Resolved
@raycast raycast deleted a comment from github-actions Bot Jun 19, 2025
@LitoMore

LitoMore commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

We can consider adding a GitHub Actions workflow for checking unofficial registries. However, it may also be necessary to consider some exceptional use cases.

Some extensions used a third-party registry because that package does not exist on npm.

Here are two packages I found:

  • korean-date-converter
    • This extension used a JSR registry for kky__ko-date-parse package since this package is only available on JSR.
  • promptlab
    • Its latest xlsx dependency is only available on SheetJS' own CDN.

@mathieudutour
mathieudutour force-pushed the f/official-npm-registry branch from df14427 to 04d1b8e Compare June 19, 2025 11:06
@raycast raycast deleted a comment from github-actions Bot Jun 19, 2025
@mathieudutour

mathieudutour commented Jun 19, 2025 •

Copy link
Copy Markdown
Member Author

@LitoMore indeed, such a check will be present in the next CLI release (part of the API) (which will run on the CI)