Expect full path of template instead of looking within CLI pkg

Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
Min Kim
2024-09-29 16:52:05 -04:00
parent 0fea82eac7
commit d7bc68d8a9
@@ -26,12 +26,12 @@ import { CreateContext } from '../../types';
export async function executePluginPackageTemplate(
ctx: CreateContext,
options: {
templateName: string;
templateDir: string;
targetDir: string;
values: Record<string, unknown>;
},
) {
const { targetDir } = options;
const { targetDir, templateDir } = options;
let lockfile: Lockfile | undefined;
try {
@@ -58,7 +58,7 @@ export async function executePluginPackageTemplate(
Task.section('Executing Template');
await templatingTask(
paths.resolveOwn('templates', options.templateName),
templateDir,
tempDir,
options.values,
createPackageVersionProvider(lockfile),