Where to set the version code in a Ionic/Capacitor app?

I’m trying to upload the second version of an app on GooglePlay.

With Cordova the version was in the file config.xml.

With Capacitor in which file should I put the version code?
I thought it was package.json, but it isn’t because GooglePlay says that the app I’m trying to upload has the same version code of the previous.

Thank you very much


I don’t know if it is right but I changed in the file:

the lines:

versionCode 2
versionName "1.0.2"

Now I’ve done the upload.
Isn’t there a way to change the version of the app in the Ionic environment?


Unless there’s newer guidance than this, I think you did it properly.