Not sure where that one sits. Enhancement or Issue? I'll let you decide.
We'd like to automate this command in a git pre-commit hook but the issue is that it throws an error when the JSON file has already been extracted as a .pq in the same folder.

It would be nice to be able to change settings to force the command to overwrite existing files.
I would probably be able to implement some sort of error handling in our pre-commit hook but I think the command should at least ask to overwrite or cancel the command.
Another option would be to extend the setting "Powerquery > Editor: Transform Target" to this command as well but that may screw up the JSON format and make it impossible for other JSON pre-commit hooks to process the file correctly.
A setting to enable or disable automatic overwrite of .pq files when using this command could also be a viable option.
Thanks!