Skip to content

Commit

Permalink
feat(npm): add support for resolving "import" conditions to ESM (#400)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
joshblack committed Jul 14, 2024
1 parent 66305e4 commit 67215a5
Show file tree
Hide file tree
Showing 5 changed files with 2,304 additions and 9,463 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-kangaroos-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/behaviors': minor
---

Update the output of the package to correctly map "import" conditions to ESM
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ jobs:
run: npm ci
- name: Check TypeScript types
run: npm run type-check
- name: Build package types
run: npm run build
- name: Check published TypeScript types
run: npx @arethetypeswrong/cli --pack .
Loading

0 comments on commit 67215a5

Please sign in to comment.