Custom Animtion Node not packaging

I found the solution myself. You need to have two modules one runtime and one UncookedOnly module and put the anim node in the runtime module and the anim graph node in the UncookedOnly module.