refactor(gen): change build process