Skip to content

Commit

Permalink
Update primer/behaviors for esm compatibility (#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Mar 31, 2022
1 parent df17b4b commit 3ebc1bb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-carrots-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Update `@primer/behaviors` for better ESM compatibility
4 changes: 1 addition & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ module.exports = {
'<rootDir>/src/utils/test-deprecations.tsx',
'<rootDir>/src/utils/test-helpers.tsx'
],
testMatch: ['<rootDir>/(src|codemods)/**/*.test.[jt]s?(x)', '!**/*.types.test.[jt]s?(x)'],
// @primer/behaviors is ESM, so needs to be transformed
transformIgnorePatterns: ['node_modules/(?!@primer/behaviors)']
testMatch: ['<rootDir>/(src|codemods)/**/*.test.[jt]s?(x)', '!**/*.types.test.[jt]s?(x)']
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"npm": ">=7"
},
"dependencies": {
"@primer/behaviors": "1.1.0",
"@primer/behaviors": "1.1.1",
"@primer/octicons-react": "16.1.1",
"@primer/primitives": "7.6.0",
"@radix-ui/react-polymorphic": "0.0.14",
Expand Down

0 comments on commit 3ebc1bb

Please sign in to comment.