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

Ensure that the exported content is in CommonJS #64

Merged
merged 4 commits into from
Oct 6, 2023
Merged

Conversation

Enet4
Copy link
Collaborator

@Enet4 Enet4 commented Oct 6, 2023

A mistake was made in recent commits, which turned "dicoogle-client" into a module with default and named exports. This is not equivalent with having a single module.exports and was conflicting with the Dicoogle web UI module boilerplate.

- not intended for v5
- move index.ts to index-module.ts
- create new index.ts that provides a CommonJS default export
- clarify that this package type is "commonjs"
- change tests to use module-based index
- add test for CommonJS import
- npm update
@Enet4 Enet4 added the bug label Oct 6, 2023
@Enet4 Enet4 changed the base branch from master to release/5.x October 6, 2023 10:59
@coveralls
Copy link

coveralls commented Oct 6, 2023

Coverage Status

coverage: 96.073%. remained the same when pulling 959dd5b on bug/commonjs into e091473 on release/5.x.

- exclude files in lib,
  to operate exclusively on src files
@Enet4 Enet4 merged commit 181cf79 into release/5.x Oct 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants