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-modified package.json committed over real project config

High Severity

The entire package.json has been replaced with a test-generated artifact. The "test": "vitest run" script is removed (breaking npm test), "private": true is removed (risking accidental npm publication), "type": "module" is removed (potentially breaking ESM resolution for the existing .ts source and test files that use import/export), and a postinstall script that writes a canary file to /tmp/ runs on every npm install. This overwrites the project's legitimate configuration with a throwaway test fixture.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bfd75d7. Configure here.

}