Skip to content

Commit

Permalink
Merge pull request #56 from trilogy-group/Vicky-Copy
Browse files Browse the repository at this point in the history
Vicky copy
  • Loading branch information
rishabh-ti authored Dec 26, 2022
2 parents 8b3d5f8 + 92ba749 commit 15477f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/api/install-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15477f2

Please sign in to comment.