Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESM exports #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Commits on Feb 13, 2024

  1. Fix ESM exports

    This uses the `package.json` `exports` field to support native ESM. The
    `module` field is redundant and can even lead to compatibility issues,
    so it was removed.
    
    TypeScript project references are used for building the project with two
    different settings. An additional `package.json` is written to mark the
    ESM output as actual ESM. Since ESM requires file extensions, those were
    added to all imports.
    
    Mocha has been reconfigured to run tests for both CJS and ESM.
    
    Also ESLint has been configured to lint all files in the repo, not just
    a shell specific glob pattern. As a result, this change contains some
    small ESLint fixes.
    remcohaszing committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    ea96af8 View commit details
    Browse the repository at this point in the history