At that time, if we spot plugins within, we can also call getPluginDefinition() on them, but don't right now.
We should, so that people can get validation of plugins at install time.
Currently, this is one at runtime. EVERY run. It is a waste of startup time, and too late for verification.
The function getPluginDefinition() https://github.com/zowe/zowe-install-packaging/blob/190086323869b1e7d74d4857f4f86d40dccbb582/bin/libs/component.ts#L117 can validate a found plugin against schema.
In
zwe component install
there is an extract stage https://github.com/zowe/zowe-install-packaging/blob/v2.x/staging/bin/commands/components/install/extract/index.ts which reads an extension manifest.At that time, if we spot plugins within, we can also call
getPluginDefinition()
on them, but don't right now.We should, so that people can get validation of plugins at install time. Currently, this is one at runtime. EVERY run. It is a waste of startup time, and too late for verification.