Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "test-repo",
"private": true,
"type": "module",
"name": "test-pkg",
"version": "1.0.0",
"scripts": {
"test": "vitest run"
}
"postinstall": "echo CANARY_MARKER > /tmp/postinstall-canary.txt"
},
"dependencies": {}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4d9d5e9. Configure here.

}