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
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "react-modern-library-cli",
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.3",
|
||||
"description": "CLI for easily bootstrapping modern react libraries",
|
||||
"repository": "transitive-bullshit/react-modern-library-cli",
|
||||
"main": "index.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue