hyperledger / identus-edge-agent-sdk-ts

Apache License 2.0
24 stars 13 forks source link

fix: build single commonjs output while keeping ability to use import or require #320

Closed elribonazo closed 3 weeks ago

elribonazo commented 3 weeks ago

Description:

Fixes https://github.com/hyperledger/identus-edge-agent-sdk-ts/issues/319 by only building a commonjs module while still maintaining the ability to import from esm (import) or commonjs (require) due to some constraints in our build process the external wasm packages don't get converted into esm correctly and it is not worth going deeper at the moment

Alternatives Considered (optional):

I searches esbuild documentations and tries to hack the build around without luck

Checklist:

github-actions[bot] commented 3 weeks ago
Lines Statements Branches Functions
Coverage: 75%
76.07% (3632/4774) 66.49% (1665/2504) 80.29% (864/1076)
coveralls commented 3 weeks ago

Pull Request Test Coverage Report for Build 11633217176

Details


Files with Coverage Reduction New Missed Lines %
src/domain/utils/DER.ts 3 35.14%
<!-- Total: 3 -->
Totals Coverage Status
Change from base Build 11615245352: -0.06%
Covered Lines: 3523
Relevant Lines: 4647

💛 - Coveralls