While you're doing refactoring, how about building this module using the NPM @wordpress/block-editor and associated packages directly, instead of a custom build scripts? Ideally, this might help smooth the transition between Gutenberg library releases.