I'm creating a new managed package and I'm unsure of how to add a custom object to the package. In 1GP I would create a new object in the org as normal and then retrieve source from org to pull through the new objects.
With 2GP I'm not necessarily attached to an org for development so I'm unsure on how to create an object for my package. Is it as simple as just creating the object-meta.xml files manually? Will I need to create a package.xml file as well? When I try to create the object-meta.xml file manually in VSCode I'm getting the following error:
cvc-elt.1.a: Cannot find the declaration of element 'CustomObject'.xml(cvc-elt.1.a)
Is this something that will be breaking for the package or just something VSCode doesn't understand.