Skip to content

Commit b574bce

Browse files
ShadowCat567Vieltojarvi
andauthored
adjustment to copy-template (#2351)
Co-authored-by: Vieltojarvi <lvielto@amazon.com>
1 parent e7f415c commit b574bce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/copy_template.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ if (!values?.name || !values?.template) {
2424
}
2525

2626
const sourcePath = path.resolve(
27-
new URL('.', import.meta.url).pathname,
28-
'..',
27+
new URL('.', import.meta.url).host,
2928
'templates',
3029
values.template as string
3130
);
3231
const destPath = path.resolve(
33-
new URL('.', import.meta.url).pathname,
34-
'..',
32+
new URL('.', import.meta.url).host,
3533
'packages',
3634
values.name as string
3735
);

0 commit comments

Comments
 (0)