Skip to content

The package.json of codemirror-graphql points to files that do not exist #1942

Open
@MrSnix

Description

@MrSnix

I think there is some kind of mis-configuration in the building or publishing process related to the codemirror-graphql package. The sub-modules usually have the ESM folder exported but this one... well it doesn't.

The main and module properties are pointing to files/folders that do not exist.

immagine

Some examples:

  1. codemirror-graphql (bug, no ESM folder exported)
    https://unpkg.com/browse/[email protected]/

  2. graphql-language-service-interface (yes, ESM folder exported)
    https://unpkg.com/browse/[email protected]/

  3. graphql-language-service-parser (yes, ESM folder exported)
    https://unpkg.com/browse/[email protected]/

  4. graphql-language-service-server (yes, ESM folder exported)
    https://unpkg.com/browse/[email protected]/

Considerations:

  1. It seems that the ESM files are scattered within the root folder rather than in the /esm sub-folder on the registry version
  2. I forked the codemirror-graphql package and I built it according to configuration and the esm folder is correctly created ... but this doesn't reflect the published version on the npm registry.
  3. This seems a long time bug affecting all previous releases

NPM Registry: https://unpkg.com/browse/[email protected]/

My build:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions