Fixing a minor issue with plugin name not being passed through in CLI function.

This commit is contained in:
mike12345567 2022-09-14 11:04:37 +01:00
parent 589d1442da
commit d67dcd78a6
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ function checkInPlugin() {
}
}
async function askAboutTopLevel() {
async function askAboutTopLevel(name) {
const files = fs.readdirSync(process.cwd())
// we are in an empty git repo, don't ask
if (files.length === 1 && files[0] === ".git") {
@ -63,7 +63,7 @@ async function init(opts) {
`An amazing Budibase ${type}!`
)
const version = await questions.string("Version", "1.0.0")
const topLevel = await askAboutTopLevel()
const topLevel = await askAboutTopLevel(name)
// get the skeleton
console.log(info("Retrieving project..."))
await getSkeleton(type, name)