Skip to content

Commit faed74e

Browse files
committed
chore: update build command references across codebase
Update all remaining references to obsolete build commands throughout documentation, scripts, and test files. Changes: - Update docs to use pnpm build:cli instead of build:dist:src - Update test scripts to reference correct build commands - Update babel and integration test scripts - Remove stale yao-pkg-build.md references Benefits: - Consistent build command usage across entire codebase - No broken references to deleted documentation - Clear guidance for all build scenarios
1 parent fa15869 commit faed74e

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

docs/architecture/repository.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ rm -rf .custom-node-build/node-patched
169169

170170
**Created by:**
171171
```bash
172-
pnpm run build:dist:src
172+
pnpm run build:cli
173173
# Runs: rollup with .config/rollup.dist.config.mjs
174174
```
175175

@@ -418,7 +418,7 @@ fi
418418
3. **Clean before release:**
419419
```bash
420420
pnpm run clean:dist
421-
pnpm run build:dist:src
421+
pnpm run build:cli
422422
pnpm run build:yao-pkg
423423
```
424424

@@ -455,7 +455,7 @@ fi
455455
| `.custom-node-build/node-yao-pkg/` | 19-20 GB | No (current) | 30-60 minutes |
456456
| `.custom-node-build/node/` | 20 GB | Yes (old) | N/A |
457457
| `.custom-node-build/node-patched/` | 20 GB | Yes (old) | N/A |
458-
| `dist/` | 10-15 MB | Yes | `pnpm run build:dist:src` (~10 sec) |
458+
| `dist/` | 10-15 MB | Yes | `pnpm run build:cli` (~10 sec) |
459459
| `pkg-binaries/` | 500 MB | Yes | `pnpm run build:yao-pkg` (~30 sec) |
460460

461461
**Total reclaimable:** ~40 GB (by removing old Node builds)
@@ -532,6 +532,6 @@ rm -rf .custom-node-build/node .custom-node-build/node-patched
532532
# Clean start
533533
pnpm install # Install dependencies (2-3 min)
534534
pnpm run build:yao-pkg:node # Build Node.js (30-60 min, one-time)
535-
pnpm run build:dist:src # Build CLI (10 sec)
535+
pnpm run build:cli # Build CLI (10 sec)
536536
pnpm run build:yao-pkg # Build pkg binaries (30 sec)
537537
```

docs/development/babel-plugins.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ make -j$(sysctl -n hw.ncpu)
387387

388388
```bash
389389
cd $(pwd)
390-
pnpm run build:dist
390+
pnpm run build:cli
391391
```
392392

393393
#### Step 4: Test Thoroughly
@@ -449,7 +449,7 @@ To see the transformed output:
449449

450450
```bash
451451
# Build with transformations
452-
pnpm run build:dist:src
452+
pnpm run build:cli
453453

454454
# Check transformed code
455455
cat dist/cli.js | head -200
@@ -465,7 +465,7 @@ grep -n "ICU-free:" dist/*.js
465465
2. Add `@fileoverview` header
466466
3. Export default function returning Babel plugin
467467
4. Add to `.config/babel.config.js`
468-
5. Test with `pnpm run build:dist:src`
468+
5. Test with `pnpm run build:cli`
469469

470470
See `scripts/babel/README.md` for detailed instructions.
471471

@@ -487,8 +487,8 @@ See `scripts/babel/README.md` for detailed instructions.
487487
If transformations aren't being applied:
488488

489489
1. Check plugin is uncommented in `.config/babel.config.js`
490-
2. Rebuild: `pnpm run build:dist:src`
491-
3. Check for Babel errors: `pnpm run build:dist 2>&1 | grep -i error`
490+
2. Rebuild: `pnpm run build:cli`
491+
3. Check for Babel errors: `pnpm run build:cli 2>&1 | grep -i error`
492492

493493
### ICU Plugin Enabled But Code Still Works
494494

docs/development/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pnpm run build
136136
**Expected output:**
137137
```
138138
139-
> pnpm run build:dist
139+
> pnpm run build:cli
140140
141141
✓ TypeScript compilation complete
142142
✓ Type definitions generated

docs/guides/yao-pkg-ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
path: .custom-node-build/node-yao-pkg/out/Release/
141141

142142
- name: Build CLI distribution
143-
run: pnpm run build:dist:src
143+
run: pnpm run build:cli
144144

145145
- name: Build pkg binary
146146
run: pnpm run build:yao-pkg

packages/cli/scripts/test-wrapper.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function checkBuildArtifacts() {
2525
const distPath = path.join(constants.rootPath, 'dist')
2626
if (!existsSync(distPath)) {
2727
logger.error('dist/ directory not found')
28-
logger.error('Run `pnpm run build:dist:src` before running tests')
28+
logger.error('Run `pnpm run build:cli` before running tests')
2929
return false
3030
}
3131

@@ -34,7 +34,7 @@ function checkBuildArtifacts() {
3434
const fullPath = path.join(constants.rootPath, artifact)
3535
if (!existsSync(fullPath)) {
3636
logger.error(`Required build artifact missing: ${artifact}`)
37-
logger.error('Run `pnpm run build:dist:src` before running tests')
37+
logger.error('Run `pnpm run build:cli` before running tests')
3838
return false
3939
}
4040
}

packages/cli/scripts/validate-tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async function validateBuildArtifacts() {
184184
issues.push({
185185
type: VALIDATION_CHECKS.BUILD_ARTIFACTS,
186186
severity: 'error',
187-
message: 'dist/ directory not found. Run pnpm run build:dist:src first',
187+
message: 'dist/ directory not found. Run pnpm run build:cli first',
188188
})
189189
return issues
190190
}

scripts/babel/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ node scripts/build-yao-pkg-node.mjs --clean
198198

199199
2. Rebuild Socket CLI:
200200
```bash
201-
pnpm run build:dist
201+
pnpm run build:cli
202202
```
203203

204204
**Testing:**
@@ -270,7 +270,7 @@ plugins: [
270270
Build and test the transformed output:
271271
```bash
272272
# Build with transformations
273-
pnpm run build:dist:src
273+
pnpm run build:cli
274274

275275
# Check transformed code
276276
cat dist/cli.js | head -100

scripts/test-smol-integration.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function main() {
104104
logger.log('')
105105

106106
logger.log('Building Socket CLI distribution...')
107-
const buildResult = await exec('pnpm', ['run', 'build:dist:src'], {
107+
const buildResult = await exec('pnpm', ['run', 'build:cli'], {
108108
cwd: ROOT_DIR,
109109
})
110110

0 commit comments

Comments
 (0)