We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35fe9a2 + e6eacda commit c9d1bdbCopy full SHA for c9d1bdb
init.js
@@ -25,8 +25,8 @@ function isUpgrade() {
25
if (isUpgrade()) {
26
try {
27
pkg = require(path.join(process.cwd(), 'package.json'))
28
- npmName = pkg.name.replace(/^@[\w]*\//, '')
29
- ownerName = pkg.name.replace(/^@([\w]*)\/[\w]*/, '$1')
+ npmName = pkg.name.replace(/^@[\w-]*\//, '')
+ ownerName = pkg.name.replace(/^@([\w-]*)\/[\w-]*/, '$1')
30
} catch {}
31
}
32
0 commit comments