1
0
Fork 0

add basic integration tests

This commit is contained in:
Travis Fischer 2018-03-09 18:45:50 -05:00 committed by Joost De Cock
parent f67003ccfc
commit 7ddd168b3a
8 changed files with 3093 additions and 75 deletions

View file

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