Changed to registerBuildPlugin and removed Package.onUse