Skip to content

Commit 502cf5e

Browse files
committed
Reorganize build outputs to centralized binaries directory
- Move stub outputs from build/stub to binaries/stub - Add binaries/socket-node for custom Node binaries - Update pkg.json configuration for new paths
1 parent c5f85a6 commit 502cf5e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.config/pkg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"socket-pnpm": "dist/pnpm-cli.js",
88
"socket-yarn": "dist/yarn-cli.js"
99
},
10-
"node": "/Users/jdalton/projects/socket-cli/build/tiny-node/node-yao-pkg/out/Release/node",
10+
"node": "/Users/jdalton/projects/socket-cli/build/socket-node/node-yao-pkg/out/Release/node",
1111
"bytecode": false,
1212
"targets": [
1313
"node24-macos-arm64",
@@ -17,7 +17,7 @@
1717
"node24-win-arm64",
1818
"node24-win-x64"
1919
],
20-
"outputPath": "build/stub",
20+
"outputPath": "binaries/stub",
2121
"assets": [
2222
"dist/**/*",
2323
"requirements.json",

scripts/build/build-stub.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const __filename = fileURLToPath(import.meta.url)
1919
const __dirname = dirname(__filename)
2020
const ROOT_DIR = join(__dirname, '../..')
2121
const BUILD_DIR = join(ROOT_DIR, 'build')
22-
const STUB_DIR = join(BUILD_DIR, 'stub')
22+
const STUB_DIR = join(ROOT_DIR, 'binaries', 'stub')
2323
const DIST_DIR = join(ROOT_DIR, 'dist')
2424
const PKG_CONFIG = join(ROOT_DIR, '.config', 'pkg.json')
2525

@@ -32,7 +32,7 @@ const PKG_CONFIG = join(ROOT_DIR, '.config', 'pkg.json')
3232
* 3. Ensure custom Node.js binary exists in pkg cache
3333
* 4. Use yao-pkg to create self-contained executable
3434
*
35-
* Output: build/stub/socket-{platform}-{arch}[.exe]
35+
* Output: binaries/stub/socket-{platform}-{arch}[.exe]
3636
*/
3737
export async function buildStub(options = {}) {
3838
const {

0 commit comments

Comments
 (0)