Skip to content

Commit

Permalink
refactor: imports prompts from entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 4, 2019
1 parent 89243d6 commit 4f2f465
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/@types/prompts-dist.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/public/prompts/confirm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// force import of transpiled prompts
import prompts from 'prompts/dist';
import prompts from 'prompts';
import { TScript } from '~/types';
import { status } from 'promist';
import expose, { TExposedOverload } from '~/utils/expose';
Expand Down
3 changes: 1 addition & 2 deletions src/public/prompts/select.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// force import of transpiled prompts
import prompts from 'prompts/dist';
import prompts from 'prompts';
import { TScript, IOfType } from '~/types';
import expose, { TExposedOverload } from '~/utils/expose';

Expand Down
3 changes: 1 addition & 2 deletions src/utils/confirm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// force import of transpiled prompts
import prompts from 'prompts/dist';
import prompts from 'prompts';

export interface IConfirmOptions {
confirm?: boolean;
Expand Down

0 comments on commit 4f2f465

Please sign in to comment.