Open ralphcallaway opened 4 years ago
maybe a pre-commit hook that checks the api version is current every so often against the rest api? could also have a npm script to update the key spots if it doesn't make sense to re-run the generator, see https://salesforce.stackexchange.com/a/116651/594
other version reference is in manifest/package.xml
but not sure if that one even does anything, seems like the sfdx stuff overrides it now
ya a commit hook seems like the way to go... Maybe with a short timeout to prevent it from hanging.
Could create a very simple sfdx:plugin to do this
sfdx project:update:version
or something like that
Upgraded to the latest and got this error
Entity type 'LightningComponentBundle' is not available in this api version
Per this forum the culprit is the
sourceApiVersion
insfdx-project
.jsonWould be nice to add an update to keep that api version current with each upgrade. Could be other options like a pre-commit hook to check things are up to the latest version. Would be nice not to have to release a new generator version 3 times a year to bump api versions. Got to be something better we could do or some way to get the latest released version of the salesforce api.