File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,45 @@ pnpm run build
110110pnpm exec socket --version
111111```
112112
113+ ### Building locally
114+
115+ Socket CLI consists of multiple packages that need to be built in a specific order:
116+
117+ 1 . ** Build WASM packages** (ONNX Runtime, Yoga):
118+ ``` bash
119+ # Build ONNX Runtime WASM (for AI features)
120+ pnpm --filter @socketsecurity/onnxruntime run build
121+
122+ # Build Yoga WASM (for terminal layouts)
123+ pnpm --filter @socketsecurity/yoga run build
124+ ```
125+
126+ 2 . ** Build the main CLI package** :
127+ ``` bash
128+ # Build packages/cli (includes TypeScript compilation and bundling)
129+ pnpm --filter @socketsecurity/cli run build
130+ ```
131+
132+ 3 . ** Build the SEA (Single Executable Application) binary** (optional):
133+ ``` bash
134+ # Build packages/socket as a Node.js SEA binary
135+ pnpm --filter @socketsecurity/socket run build
136+ ```
137+
138+ ** Full build command** (all packages):
139+ ``` bash
140+ pnpm run build
141+ ```
142+
143+ ** Quick builds** (skip WASM):
144+ ``` bash
145+ # Build only the CLI package
146+ pnpm --filter @socketsecurity/cli run build
147+
148+ # Build and run
149+ pnpm --filter @socketsecurity/cli run build && pnpm exec socket --version
150+ ```
151+
113152See [ docs/development/] ( docs/development/ ) for detailed development guides.
114153
115154### Development environment variables
You can’t perform that action at this time.
0 commit comments