CodeNomad/scripts
Shantur Rathore 3ccdd36ad8
Reduce App package sizes (#453)
## Summary
- Trim Electron app packaging to only include runtime shell assets and
remove unused workspace runtime dependencies.
- Copy server resources explicitly, filtering stale build artifacts and
pruning known non-runtime dependency files.
- Bundle only the Node executable instead of the full Node distribution.

## Validation
- Built macOS Electron artifacts with `npm run build:mac --workspace
@neuralnomads/codenomad-electron-app`.
- Ran packaged server CLI smoke test: `dist/bin.js --version` returned
`0.16.0`.
- Ran packaged dependency import smoke test for pruned runtime
dependencies.

## Size Impact
- macOS x64 zip: 161M
- macOS arm64 zip: 161M
- macOS arm64 app bundle: 435M
- Packaged server node_modules: 25M
2026-05-15 19:13:13 +01:00
..
bump-version.js Fix bumpVersion script for both npm and tauri 2026-03-31 20:15:16 +01:00
desktop-server-resources.cjs Reduce App package sizes (#453) 2026-05-15 19:13:13 +01:00
prepare-node-runtime.cjs Reduce App package sizes (#453) 2026-05-15 19:13:13 +01:00
smoke-packaged-resources.cjs Reduce App package sizes (#453) 2026-05-15 19:13:13 +01:00
verify-bundled-node.cjs build: bundle node runtime for desktop packages 2026-05-04 20:08:04 +01:00