Try removing the target-dir option in the composer.json.