diff --git a/src/pages/api/install-component.js b/src/pages/api/install-component.js index 1e5d0ca384..db8055210f 100644 --- a/src/pages/api/install-component.js +++ b/src/pages/api/install-component.js @@ -30,6 +30,8 @@ export default async function handler(req, res) { installedList[componentName] = componentPath; fs.writeFileSync("src/installed-components/installedList.json",JSON.stringify(installedList),"utf-8"); + shell.exec(`pnpm i ${req.body.path}`) + res.status(200).json(componentName) } catch (err) { console.log(err)