fix: npm workspace support
This commit is contained in:
parent
60e286d8d5
commit
43af885b6d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user