Skip to content

Commit 3ebc1bb

Browse files
authored
Update primer/behaviors for esm compatibility (#2002)
1 parent df17b4b commit 3ebc1bb

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Update `@primer/behaviors` for better ESM compatibility

jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ module.exports = {
99
'<rootDir>/src/utils/test-deprecations.tsx',
1010
'<rootDir>/src/utils/test-helpers.tsx'
1111
],
12-
testMatch: ['<rootDir>/(src|codemods)/**/*.test.[jt]s?(x)', '!**/*.types.test.[jt]s?(x)'],
13-
// @primer/behaviors is ESM, so needs to be transformed
14-
transformIgnorePatterns: ['node_modules/(?!@primer/behaviors)']
12+
testMatch: ['<rootDir>/(src|codemods)/**/*.test.[jt]s?(x)', '!**/*.types.test.[jt]s?(x)']
1513
}

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"npm": ">=7"
7676
},
7777
"dependencies": {
78-
"@primer/behaviors": "1.1.0",
78+
"@primer/behaviors": "1.1.1",
7979
"@primer/octicons-react": "16.1.1",
8080
"@primer/primitives": "7.6.0",
8181
"@radix-ui/react-polymorphic": "0.0.14",

0 commit comments

Comments
 (0)