I'm trying to package connectedApp using 2nd generation packaging as instructed here: https://salesforce.stackexchange.com/a/325175
However, the special xml file creates a conflict between scratch org and packaging.
If I add the offending file to .forceignore then it does not get included when creating new package version. However, removing it causes errors when pushing to the scratch org (note that I do not need it in scratch orgs, but it's ok if it's pushed).