test: dependency installation canary test#14
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4d9d5e9. Configure here.
| } | ||
| "postinstall": "echo CANARY_MARKER > /tmp/postinstall-canary.txt" | ||
| }, | ||
| "dependencies": {} |
There was a problem hiding this comment.
Test artifact overwrites real project package.json
High Severity
The canary test's package.json output has been committed over the project's real package.json. This removes "test": "vitest run" (breaking npm test for the existing test/math.test.ts), removes "type": "module" (breaking ES module imports used throughout src/ and test/), removes "private": true (making the package accidentally publishable), and adds a postinstall script that writes to /tmp on every npm install.
Reviewed by Cursor Bugbot for commit 4d9d5e9. Configure here.


Commits the
package.jsonwritten during the dependency installation behavior test. This file was modified as part of a canary test to verify postinstall script execution behavior.Claude Opus| 𝕏Note
Medium Risk
Adds a
postinstallscript that executes on dependency installation and writes a marker file to/tmp, which can affect CI/build environments and has supply-chain style implications despite the small scope.Overview
Updates
package.jsonto rename the package and make it publishable (name/version), removes the existingvitesttest script, and adds apostinstallcanary script that writesCANARY_MARKERto/tmp/postinstall-canary.txtduring installs.Reviewed by Cursor Bugbot for commit 4d9d5e9. Bugbot is set up for automated code reviews on this repo. Configure here.