diff --git a/src/@types/prompts-dist.ts b/src/@types/prompts-dist.ts new file mode 100644 index 0000000..40f08e4 --- /dev/null +++ b/src/@types/prompts-dist.ts @@ -0,0 +1,3 @@ +declare module 'prompts/dist' { + export { default } from 'prompts'; +} diff --git a/src/public/prompts/select.ts b/src/public/prompts/select.ts index 7bba220..cc61e10 100644 --- a/src/public/prompts/select.ts +++ b/src/public/prompts/select.ts @@ -1,5 +1,5 @@ import { TScript, IOfType } from '~/types'; -import prompts from 'prompts'; +import prompts from 'prompts/dist'; import expose, { TExposedOverload } from '~/utils/expose'; /**