Replace the bash-based bundling script with a TypeScript implementation to improve cross-platform compatibility and maintainability. The new script includes logic for change detection via file hashing to skip unnecessary rebuilds.