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 replaces real package.json project configuration

High Severity

The entire package.json has been overwritten by the output of a postinstall canary smoke test. This removes "private": true (risking accidental npm publication), removes "type": "module" (breaking ESM resolution for the existing .ts sources and vitest test suite that use import/export), and replaces the "test" script with a postinstall hook that writes a marker file to /tmp. The repository's build and test pipeline no longer functions.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bad2514. Configure here.

}