-
SummaryA custom generator configured in the workspace Additional informationimport type { PlopTypes } from "@turbo/gen";
export default function generator(plop: PlopTypes.NodePlopAPI): void {
plop.setGenerator("Package", {
description: "A package",
prompts: [
{
type: "input",
name: "packageName",
message: "What is the package name?",
},
],
actions: [
{
type: "addMany",
destination: "packages/package-{{kebabCase middlewareName}}",
base: "turbo/templates/package",
templateFiles: [
"turbo/templates/package/*",
"turbo/templates/package/**/*",
],
},
],
});
} |
Beta Was this translation helpful? Give feedback.
Answered by
vabatta
Sep 26, 2025
Replies: 1 comment
-
|
Files are not relative to the workspace root as opposed to what documentation says:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vabatta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Files are not relative to the workspace root as opposed to what documentation says: