The way it is written in UA, NO.
Note the use of is, instead of something like gains a +2 bonus
Any weapon you create using your Pact of the Blade feature is a +2 weapon. This invocation doesn’t affect a magic weapon you transformed into your pact weapon.
This is similar to the writing in Armors, in which your AC is something, and stacking armors (somehow) wouldn't stack bonuses.
The way it is written in XGtE, probably NO.
For the XGtE,
In addition, the weapon gains a +1 bonus to its attack and damage rolls
which would stack with another effect that said something on the lines of
In addition, the weapon gains a +2 bonus to its attack and damage rolls
except that it is explicitly states
unless it is a magic weapon that already has a bonus to those rolls.
and Pact Blade counts as a magical weapon (at least for resistances against non-magic weapons), as stated
You can use your action to create a pact weapon in your empty hand. You can choose the form that this melee weapon takes each time you create it. You are proficient with it while you wield it. This weapon counts as magical for the purpose of overcoming Resistance and immunity to nonmagical attacks and damage.
While not explicitly stated that it counts as a magical weapon for the purpose of the bonus, it seems it is intended to not stack.
Note that the UA usually is not balanced (the point of it is to playtest and balance) and you should take care with using this content. From my experience, the writting was also not refined by then, as can be seen in the difference between the actual release and the UA version. You could suppose the intended purpose of what was written on UA is what is written on the official release, but that would not be RAW.
"Hit" is the general term used for "You made an attack roll and equalled or beat the target's AC".
So this would work just fine. If an ability was restricted to being used only with Melee weapons (or ranged ones) then the text would mention this directly by saying something like:
"When you hit a creature with a melee weapon attack" or "When you hit a creature with a melee attack using your Pact Weapon", but it does not.
Thirsting Blade only works with pact weapons
The Thirsting Blade eldritch invocation simply states (emphasis mine):
Although similar to Extra Attack, this feature does not work the same way; it clearly states that you attack twice with a pact weapon, which means the feature does not apply to any non-pact weapon. Therefore, making an attack with a non-pact weapon does not qualify for Thirsting Blade, and you would be unable to make any further attacks with that same Attack action.
Contrast this with the UA Artificer's Arcane Armament feature1 (emphasis mine):
This feature notes that only one of the attacks needs to be with a magic weapon, so you would be able to make the other attack with any weapon when using Arcane Armament. As you can see, this is very different wording from that of Thirsting Blade.
1. Suggested by Someone_Evil. This feature does not appear in the final version of the artificer published in Eberron: Rising from the Last War.