Skip to content

Commit

Permalink
fix(playwright): files exports for world and PlaywrightWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
dnotes committed Oct 9, 2024
1 parent f26a876 commit b8a6860
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-weeks-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@quickpickle/playwright": patch
---

fix package.json for files exports
18 changes: 14 additions & 4 deletions packages/playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,32 @@
"license": "MIT",
"type": "module",
"main": "./dist/PlaywrightWorld.cjs",
"module": "./dist/PlaywrightWorld.esm.js",
"module": "./dist/PlaywrightWorld.mjs",
"types": "./dist/PlaywrightWorld.d.ts",
"exports": {
".": {
"require": "./dist/PlaywrightWorld.cjs",
"import": "./dist/PlaywrightWorld.mjs",
"types": "./dist/PlaywrightWorld.d.ts"
},
"./PlaywrightWorld": {
"require": "./dist/PlaywrightWorld.cjs",
"import": "./dist/PlaywrightWorld.mjs",
"types": "./dist/PlaywrightWorld.d.ts"
},
"./world": {
"require": "./dist/world.cjs",
"import": "./dist/world.esm.js",
"import": "./dist/world.mjs",
"types": "./dist/world.d.ts"
},
"./actions": {
"require": "./dist/actions.steps.cjs",
"import": "./dist/actions.steps.esm.js",
"import": "./dist/actions.steps.mjs",
"types": "./dist/actions.steps.d.ts"
},
"./outcomes": {
"require": "./dist/outcomes.steps.cjs",
"import": "./dist/outcomes.steps.esm.js",
"import": "./dist/outcomes.steps.mjs",
"types": "./dist/outcomes.steps.d.ts"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
format: 'esm',
sourcemap: true,
exports: 'named',
entryFileNames: '[name].esm.js'
entryFileNames: '[name].mjs'
}
],
plugins: [
Expand Down

0 comments on commit b8a6860

Please sign in to comment.