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: digest library as JavaScript module build by TypeScript #596

Merged
merged 7 commits into from
Mar 28, 2023

Conversation

jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Mar 28, 2023

it appeared like there was an issue when digesting this very library in another (downstream) TypeScript project that was intended to compile to native ECMA script modules.

to check, integration tests were added,
and a fix/solution was implemented -- fix the package.json's exports setting.

@jkowalleck jkowalleck added the bug Something isn't working label Mar 28, 2023
@codacy-production
Copy link

codacy-production bot commented Mar 28, 2023

Coverage summary from Codacy

Merging #596 (219c887) into main (4ad222a) - See PR on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%) (target: 90.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4ad222a) 5197 5102 98.17%
Head commit (219c887) 5197 (+0) 5102 (+0) 98.17% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#596) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@jkowalleck jkowalleck force-pushed the fix-TSesm-digest branch 2 times, most recently from bd7e385 to 61ba718 Compare March 28, 2023 01:44
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck marked this pull request as ready for review March 28, 2023 02:25
@jkowalleck jkowalleck requested a review from a team as a code owner March 28, 2023 02:25
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
},
"browser": "./dist.web/lib.js",
"types": "./dist.d/index.node.d.ts",
"main": "./dist.node/index.node.js",
"exports": "./dist.node/index.node.js",
"exports": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ this is the actual fix

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck merged commit b5bb39e into main Mar 28, 2023
@jkowalleck jkowalleck deleted the fix-TSesm-digest branch March 28, 2023 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant