Change type from "composer-plugin" to "composer-installer".
Change getInstallPath() to getPackageBasePath().

LibraryInstaller::uninstall() uses getPackageBasePath().