fix: npm workspace support

This commit is contained in:
cha0s 2024-02-12 00:32:54 -06:00
parent 60e286d8d5
commit 43af885b6d

View File

@ -64,7 +64,7 @@ const {
scope = inferredScope;
}
}
const local = basename(path || root);
const local = basename(path || dirname(npm_package_json));
const name = scope ? `${scope}/${local}` : local;
const fileTree = await move(name, join(__dirname, '..', 'template'));
if (inheritVersion && rootJson?.version) {