add basic integration tests
This commit is contained in:
parent
f67003ccfc
commit
7ddd168b3a
8 changed files with 3093 additions and 75 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
const inquirer = require('inquirer')
|
||||
const isValidNpmName = require('is-valid-npm-name')
|
||||
const path = require('path')
|
||||
|
||||
module.exports = async (defaults) => {
|
||||
const info = await inquirer.prompt([
|
||||
|
@ -47,12 +46,5 @@ 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.shortName)
|
||||
|
||||
return info
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue