SRGSSR / pillarbox-web

https://srgssr.github.io/pillarbox-web-demo/
MIT License
11 stars 1 forks source link

feat: add exports field to package.json #248

Closed jboix closed 2 months ago

jboix commented 2 months ago

Description

Adds an 'exports' field in package.json to explicitly define entry points for ESM and CommonJS modules. This change ensures compatibility with different module systems and resolves module resolution issues in environments that rely on Node's resolution algorithm (like Vitest or Jest).

See: https://nodejs.org/api/esm.html#resolution-and-loading-algorithm

Changes made

github-actions[bot] commented 2 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-04-26 14:35 UTC

github-actions[bot] commented 2 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.72% 617/625
🟒 Branches 95.74% 292/305
🟒 Functions 99.43% 173/174
🟒 Lines 99.15% 581/586

Test suite run success

199 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from d95e066286e39a618e163c578e1b026a815a4887

github-actions[bot] commented 2 months ago

:tada: This PR is included in version 1.12.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: