Skip to content

Commit 67215a5

Browse files
authored
feat(npm): add support for resolving "import" conditions to ESM (#400)
* feat(project): emit .mjs files for ESM bundle * chore: add changeset * fix: update references in exports to use .mjs * fix: update entry for size-limit * ci: update type-check job * refactor: emit package.json with "type" instead of .mjs files * chore: update size-limit entrypoint * chore: update changeset * chore: use explicit .mjs extension * chore: add optional dependencies for ci * chore: update size-limit entry point
1 parent 66305e4 commit 67215a5

File tree

5 files changed

+2304
-9463
lines changed

5 files changed

+2304
-9463
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/behaviors': minor
3+
---
4+
5+
Update the output of the package to correctly map "import" conditions to ESM

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ jobs:
4747
run: npm ci
4848
- name: Check TypeScript types
4949
run: npm run type-check
50+
- name: Build package types
51+
run: npm run build
52+
- name: Check published TypeScript types
53+
run: npx @arethetypeswrong/cli --pack .

0 commit comments

Comments
 (0)