src/widgets.config.ts and publishes their runtime artifacts with the portal CLI.
Create a widget
From the portal project root:--category when it belongs in a builder palette category other than components.
Define the package
The scaffold adds widget source and updatessrc/widgets.config.ts. Import worker APIs only from:
uses together in the package definition.
See defineWidget and defineWidgetPackage for the exact authoring contracts.
Preview and validate
Check publication without writing
Publish company widget artifacts
src/widgets.config.ts. It does not push Portal Definition JSON or activate a portal version.
After publication, place the published widget through the supported portal authoring flow. Portal JSON and Widget Package definitions remain separate contracts.