Skip to content

Commit 5e87d84

Browse files
authored
Add exports to satisfy playwright
The `playwright` repo uses `expect`, I'd like to bump the version they're using from `26.4.2` to `27.1.0`. Here is the issue which motivated this change: jestjs#11640 You can see my proposed changes here: microsoft/playwright@master...mrienstra:patch-3 I haven't opened a PR for those changes yet, hoping to land this one first. Playwright `npm check-deps` runs `utils/check_deps.js`, which contains a function `allowExternalImport` / `alllowExternalImport` (very recently added in microsoft/playwright#8501), which has a problem with the `expect` `package.json` `exports`, thus the motivation for this PR.
1 parent 3c511fd commit 5e87d84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/expect/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"exports": {
1313
".": "./build/index.js",
1414
"./package.json": "./package.json",
15-
"./build/utils": "./build/utils.js"
15+
"./build/types": "./build/types.d.ts",
16+
"./build/*": "./build/*.js"
1617
},
1718
"dependencies": {
1819
"@jest/types": "^27.1.0",

0 commit comments

Comments
 (0)