shumbo / choreography-ts

Choreographic Programming in TypeScript
1 stars 2 forks source link

ESM + Vitest #36

Closed shumbo closed 1 year ago

shumbo commented 1 year ago

This PR switches the project to use ESM instead of CommonJS. It uses tsup to compile TypeScript sources to both CommonJS (.cjs) and ESM (.js) and emit type definitions (d.ts) and conditional exports to support importing the library as CommonJS.

codecov[bot] commented 1 year ago

Codecov Report

Merging #36 (6ca7a56) into main (906de5b) will increase coverage by 0.55%. The diff coverage is 93.33%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   88.02%   88.58%   +0.55%     
==========================================
  Files          22       21       -1     
  Lines        1019     2470    +1451     
  Branches      131      357     +226     
==========================================
+ Hits          897     2188    +1291     
- Misses        121      282     +161     
+ Partials        1        0       -1     
Files Changed Coverage Δ
packages/core/src/lib/transport-test-suite.ts 98.44% <90.47%> (+0.08%) :arrow_up:
packages/core/src/index.ts 100.00% <100.00%> (ø)
...ackages/transport-express/src/transport-express.ts 95.83% <100.00%> (+3.67%) :arrow_up:

... and 19 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more