Skip to content

Commit

Permalink
fix(prompt): Addresses issue where prompt inputs get overwritten = fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
imranMnts authored Apr 19, 2022
1 parent 6840931 commit 6f6b2c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tsconfig.json
docs/

readme.md
6 changes: 1 addition & 5 deletions src/toolbox/prompt-tools.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { GluegunEnquirer, GluegunPrompt } from './prompt-types'

let enquirer: GluegunEnquirer = null
function getEnquirer(): GluegunEnquirer {
if (enquirer) return enquirer

const Enquirer: GluegunEnquirer = require('enquirer')
enquirer = new Enquirer()

return enquirer
return new Enquirer()
}

/**
Expand Down

0 comments on commit 6f6b2c6

Please sign in to comment.