Add main definition in component.json.