Skip to main content

updateFrontendFramework

plugin.projectStructure.updateFrontendFramework(packageId: string, framework: FrameworkInfo, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Update frontend framework for a package

Parameters​

ParameterTypeRequiredDescription
packageIdstringYes
frameworkFrameworkInfoYes
workspacePathstringNo

Returns​

Promise<ProjectStructureUpdateResponse>

Example​

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.projectStructure.updateFrontendFramework('packageId', /* FrameworkInfo */);
console.log(result);