fix: make composer2npm behaviour consistent