I think an optionDependency would be better in this case. because then developers can at least decide if to install it. It it does not need to be installed if not needed (though npm will still try to install it by default)
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#optionaldependencies