Skip to content

Commit

Permalink
Consume password-prompt as a CJS module (not ES6) (davewasmer#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Mar 14, 2021
1 parent 910507e commit 36f295c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/user-interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import passwordPrompt from 'password-prompt';
import passwordPrompt = require('password-prompt');
import { waitForUser } from './utils';

/**
Expand Down
10 changes: 9 additions & 1 deletion types/password-prompt.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
export default function(prompt: string): Promise<string>;
export = prompt;
declare function prompt(
ask: string,
options?: {
method: 'hide' | 'mask';
required: boolean;
default?: string;
}
): Promise<string>;

0 comments on commit 36f295c

Please sign in to comment.