1
0
Fork 0

bugfix scoped packages

This commit is contained in:
Travis Fischer 2018-03-07 02:35:09 -05:00 committed by Joost De Cock
parent b93ef06f1c
commit 8fd5eea43b
2 changed files with 6 additions and 2 deletions

View file

@ -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
}