-
-
Notifications
You must be signed in to change notification settings - Fork 4
fix: add napi-postinstall
dep for workaround npm
's bug
#66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.
Files not reviewed (2)
- npm/package.json: Language not supported
- package.json: Language not supported
WalkthroughThe changes update the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant npm
participant PostinstallScript
participant napi-postinstall
User->>npm: Install package
npm->>PostinstallScript: Run "postinstall" script
PostinstallScript->>napi-postinstall: Execute "napi-postinstall unrs-resolver check"
napi-postinstall-->>PostinstallScript: Perform post-install checks
PostinstallScript-->>npm: Complete installation
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed everything up to d66dcea in 50 seconds. Click for details.
- Reviewed
63
lines of code in2
files - Skipped
1
files when reviewing. - Skipped posting
7
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. npm/package.json:47
- Draft comment:
Ensure the 'postinstall' script and dependency 'napi-postinstall' correctly trigger native binding checks. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. package.json:13
- Draft comment:
Version bumps in devDependencies and packageManager update look good; verify compatibility with your build workflow. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
3. npm/package.json:14
- Draft comment:
Repository field now a string; confirm this is consistent with project conventions. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. npm/package.json:46
- Draft comment:
Funding field changed from an object to a string; ensure this aligns with npm guidelines and remains consistent. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
5. npm/package.json:47
- Draft comment:
Added postinstall script using napi-postinstall to work around the native binding issue; verify this resolves the ESLint error. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
6. package.json:19
- Draft comment:
Updated dev dependency versions; ensure these upgrades (e.g. @napi-rs/cli, @napi-rs/wasm-runtime, @types/node, emnapi) are backward compatible. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
7. package.json:26
- Draft comment:
Package manager version bumped to pnpm@10.8.1; ensure this version is available in your build environment. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_1YYRPyMcubCt0HNy
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
close #56
Important
Add
napi-postinstall
dependency and update package metadata and dependencies to address npm bug.napi-postinstall
as a dependency innpm/package.json
to workaround an npm bug.@napi-rs/cli
to3.0.0-alpha.78
,@napi-rs/wasm-runtime
to^0.2.9
,@types/node
to^22.14.1
, andemnapi
to^1.4.3
inpackage.json
.postinstall
script innpm/package.json
to runnapi-postinstall unrs-resolver check
.description
,homepage
, andrepository
fields innpm/package.json
.This description was created by
for d66dcea. You can customize this summary. It will automatically update as commits are pushed.
Summary by CodeRabbit