Skip to content

Commit 7e89cb9

Browse files
Setup Socket patches
Configures package.json postinstall scripts to automatically apply Socket security patches.
1 parent d47ba37 commit 7e89cb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"setup:env": "node scripts/setup-env.mjs",
5252
"setup:hooks": "git config core.hooksPath .githooks && git config push.followTags true && echo '✅ Git hooks and push.followTags configured'",
5353
"setup": "pnpm setup:env && pnpm setup:hooks",
54-
"postinstall": "node scripts/setup-env.mjs && git config core.hooksPath .githooks && git config push.followTags true 2>/dev/null || true"
54+
"postinstall": "pnpm dlx @socketsecurity/socket-patch apply --silent --ecosystems npm && node scripts/setup-env.mjs && git config core.hooksPath .githooks && git config push.followTags true 2>/dev/null || true",
55+
"dependencies": "pnpm dlx @socketsecurity/socket-patch apply --silent --ecosystems npm"
5556
},
5657
"devDependencies": {
5758
"@changesets/cli": "^2.27.0",

0 commit comments

Comments
 (0)