Metafield and metaobject definitions in settings.ib.ts
Declare your Shopify app's own metafield and metaobject definitions in settings.ib.ts, and each release sends them to every store the app is on. Stores that installed before you added one get it too, with no reinstall and no setup code in the install action.
Add shopify.metafields (by owner, then key) and shopify.metaobjects (by type) to settings.ib.ts. They're released with the app's configuration, on save in development and on deploy in production, and shopify.app.toml shows them as Shopify's [product.metafields.app.<key>] and [metaobjects.app.<type>] tables.
Removing a definition from the settings removes it from the stores with the next release. A definition that doesn't check out shows in Problems and stays out of the release.
Definitions declared this way are in the $app namespace. The settings types need @inferencebureau/apps-sdk 0.16.11.
More in Metafield and metaobject definitions.