https://turborepo.com/docs/guides/generating-code# @turbo/gen
Types for working with Turborepo Generators.
Usage
Install:
pnpm add @turbo/gen --save-dev
Use types within your generator config.ts:
import type { PlopTypes } from "@turbo/gen";
export default function generator(plop: PlopTypes.NodePlopAPI): void {
plop.setGenerator("Generator name", {
description: "Generator description",
prompts: [
...
],
actions: [
...
],
});
}
Learn more about Turborepo Generators in the docs
For more information about Turborepo, visit turborepo.com and follow us on X (@turborepo)!