Skip to content

Commit 160e849

Browse files
committed
chore: 🔧 install deps after generating plugin
1 parent b00d931 commit 160e849

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

turbo/generators/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { PlopTypes } from "@turbo/gen";
22

3+
import { execSync } from "node:child_process";
34
import path from "node:path";
45
import { camelCase, kebabCase, snakeCase, startCase } from "es-toolkit";
56
import { toLower, toUpper } from "es-toolkit/compat";
@@ -31,6 +32,10 @@ export default function generator(plop: PlopTypes.NodePlopAPI) {
3132
templateFiles: `${templateRoot}/**/*`,
3233
type: "addMany",
3334
},
35+
() => {
36+
execSync("pnpm install", { stdio: "inherit" });
37+
return "installed dependencies";
38+
},
3439
];
3540
},
3641
description: "create a new docusaurus plugin",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "tsconfig/base.json",
2+
"extends": "@gracefullight-docusaurus/tsconfig/base.json",
33
"include": ["src"]
44
}

0 commit comments

Comments
 (0)