Skip to content
Open
Changes from 3 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"
},

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 script removed while test files still exist

Medium Severity

The "test": "vitest run" script was removed and replaced only with a postinstall script. The repo still has test/math.test.ts importing from vitest, so npm test no longer works. The canary script could have been added alongside the existing test script rather than replacing it.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 812421b. Configure here.

"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.

Removed private: true risks accidental npm publication

Medium Severity

The "private": true field was removed from package.json. This guard prevents accidental publication to the npm registry. Since this is a test/internal repo (originally named test-repo), removing it means an accidental npm publish could push the package publicly. The field can coexist with the new postinstall canary script.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 812421b. Configure here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removed "type": "module" breaks ESM source files

Medium Severity

The "type": "module" field was removed. All source files in src/ and test/ use ESM syntax (import/export). Without this field, Node.js defaults to CommonJS module resolution, which can break direct execution or tooling that relies on this setting.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e1e96ce. Configure here.

}