-
Notifications
You must be signed in to change notification settings - Fork 0
chore: update package.json for canary test #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
38da001
6eaf817
fc0783d
26f9a2a
dc61558
d28166f
305db59
7c0abfb
eb6b030
0bf7d57
8fb5b97
90ec089
f8fcafe
2eb9635
f19560a
fa453cf
f5525bf
e380d32
7fe728e
866fada
e553115
e8af768
44599f9
df3e71d
4df7794
86601f0
221bd33
bb1eead
1896312
58770a3
8d43b6f
b534670
21e8cb2
1de63e7
c2469a1
dd8c5a9
5468329
b3c140b
2e04b17
4de5fba
2026298
8b1626f
2a61946
48c500d
d90e946
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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": {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removal of
|
||
| } | ||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test artifact postinstall script committed to repository
High Severity
A
postinstallscript that writesCANARY_MARKERto/tmp/postinstall-canary.txtis being committed. This will execute on everynpm installfor all contributors, writing to the filesystem as a side effect. This is a canary-test artifact that doesn't belong in the committedpackage.json. It also replaces the"test": "vitest run"script, sonpm testno longer works despite test files (test/math.test.tsusingvitest) still existing in the repo.Reviewed by Cursor Bugbot for commit fc0783d. Configure here.