From b574bce26ec2d55a4391aeceecc1d4957e79fba3 Mon Sep 17 00:00:00 2001 From: Leena <81589006+ShadowCat567@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:50:59 -0500 Subject: [PATCH] adjustment to copy-template (#2351) Co-authored-by: Vieltojarvi --- scripts/copy_template.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/copy_template.ts b/scripts/copy_template.ts index 40cb9ccf90..edb1a45a08 100644 --- a/scripts/copy_template.ts +++ b/scripts/copy_template.ts @@ -24,14 +24,12 @@ if (!values?.name || !values?.template) { } const sourcePath = path.resolve( - new URL('.', import.meta.url).pathname, - '..', + new URL('.', import.meta.url).host, 'templates', values.template as string ); const destPath = path.resolve( - new URL('.', import.meta.url).pathname, - '..', + new URL('.', import.meta.url).host, 'packages', values.name as string );