Skip to content

Commit 92103ed

Browse files
committed
feat: migrate patch command to @socketsecurity/socket-patch@1.2.0
1 parent c4b1339 commit 92103ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+185
-5261
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [Unreleased]
8+
9+
### Changed
10+
- Updated to @socketsecurity/socket-patch@1.2.0.
11+
712
## [2.1.0](https://github.com/SocketDev/socket-cli/releases/tag/v2.1.0) - 2025-11-02
813

914
### Added

packages/cli/.config/esbuild.cli.build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const config = {
101101
format: 'cjs',
102102

103103
// With platform: 'node', esbuild automatically externalizes all Node.js built-ins.
104-
external: [],
104+
external: ['@socketsecurity/socket-patch'],
105105

106106
// Suppress warnings for intentional CommonJS compatibility code.
107107
logOverride: {

packages/cli/external-tools.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
"package": "socketsecurity",
2525
"version": "^2.2.15"
2626
},
27+
"socket-patch": {
28+
"description": "Socket Patch CLI for applying security patches",
29+
"type": "npm",
30+
"package": "@socketsecurity/socket-patch",
31+
"version": "1.2.0"
32+
},
2733
"sfw": {
2834
"description": "Socket Firewall (sfw)",
2935
"type": "standalone",

packages/cli/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,8 @@
194194
"patchedDependencies": {
195195
"ink@6.3.1": "patches/ink@6.3.1.patch"
196196
}
197+
},
198+
"dependencies": {
199+
"@socketsecurity/socket-patch": "1.2.0"
197200
}
198201
}

packages/cli/scripts/build.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
* Options: --quiet, --verbose, --force, --watch
44
*/
55

6-
import { copyFileSync } from 'node:fs'
7-
import { promises as fs } from 'node:fs'
6+
import { copyFileSync, promises as fs } from 'node:fs'
87
import path from 'node:path'
98
import { fileURLToPath } from 'node:url'
109

packages/cli/src/commands/patch/PatchSelectorApp.tsx

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)