bugfix scoped packages
This commit is contained in:
parent
b93ef06f1c
commit
8fd5eea43b
2 changed files with 6 additions and 2 deletions
|
@ -47,8 +47,12 @@ module.exports = async (defaults) => {
|
|||
}
|
||||
])
|
||||
|
||||
// handle scoped package names
|
||||
const parts = info.name.split('/')
|
||||
info.shortName = parts[parts.length - 1]
|
||||
|
||||
info.yarn = (info.manager === 'yarn')
|
||||
info.dest = path.join(process.cwd(), info.name)
|
||||
info.dest = path.join(process.cwd(), info.shortName)
|
||||
|
||||
return info
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue