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 );