From 74dd4d68d3b5375dae2079d13b8bd392943ea9cb Mon Sep 17 00:00:00 2001 From: Ken Date: Mon, 5 Aug 2019 21:48:48 -0700 Subject: [PATCH] make plop load of helpers work --- packages/create-just/src/plop.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/create-just/src/plop.ts b/packages/create-just/src/plop.ts index 54ce6a07..4d9cc1f1 100644 --- a/packages/create-just/src/plop.ts +++ b/packages/create-just/src/plop.ts @@ -8,7 +8,8 @@ export async function getPlopGenerator(plopfilePath: string, destBasePath: strin const plop = nodePlop(plopfile, { destBasePath, force: false }); // Automatically inject some plop helpers - (plop as any).load('just-plop-helpers'); + const justPlopHelpers = require.resolve('just-plop-helpers'); + (plop as any).load(justPlopHelpers); let generator = plop.getGenerator(`repo:${stackName}`) as any;