Skip to content

The dist files for CommonJS are not correct #1218

@LitoMore

Description

@LitoMore

CleanShot 2023-05-04 at 15 10 58@2x

As you can see here https://www.jsdelivr.com/package/npm/@inquirer/core?tab=files&path=dist%2Fcjs, it runs require("./lib/screen-manager.mjs") for importing modules.

This might be related to:

Or we could consider other tools. For example https://github.com/egoist/tsup.

How to reproduce

// Use CommonJS, and run this line
const {input} = require('@inquirer/prompts');

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions