Skip to content

chore: declare @maxgraph/core as a module package#397

Merged
tbouffard merged 2 commits into
mainfrom
chore/declare_core_as_type_module
Apr 23, 2024
Merged

chore: declare @maxgraph/core as a module package#397
tbouffard merged 2 commits into
mainfrom
chore/declare_core_as_type_module

Conversation

@tbouffard

Copy link
Copy Markdown
Member

The dist folder only contains ESM files and the package.json only declare ESM exports with properties:

  • module
  • exports

Declaring the package as a module will help application that want to add test written in ESM (for example with Jest) to correctly import and run the maxGraph dependency.

Notes

Full ESM exports were introduced in #266

The dist folder only contains ESM files and the package.json only declare ESM exports with
properties:
  - module
  - exports

Declaring the package as a module will help application that want to add test written in ESM (for
example with Jest) to correctly import and run the maxGraph dependency.
@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Apr 22, 2024
@tbouffard
tbouffard marked this pull request as ready for review April 22, 2024 18:09
@tbouffard
tbouffard merged commit 496efc5 into main Apr 23, 2024
@tbouffard
tbouffard deleted the chore/declare_core_as_type_module branch April 23, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant