The witPath option to the componentize function can either be a path to a single wit file or to a directory. If the path is a wit file then the wit package must not have any dependencies. Otherwise, if the path is a directory, the package's dependencies can be located in a deps directory.
This should be documented as it is not obvious that this is the behavior.