Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CJS interop #9

Merged
merged 5 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/wet-queens-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'axe-reporter-html': major
---

Fix CJS interop. This change generally shouldn't be breaking, but in case it is,
it's being marked as a major change. The result of this change is that ESM and
CJS should both work as intended without needing to do `require().default`
tricks.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
on: [push]
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test": "playwright test",
"ts": "tsc",
"format": "prettier --write .",
"build": "tsup ./src/index.ts --format cjs,esm --dts --shims",
"build": "tsup ./src/index.ts --format cjs,esm --dts --shims --cjsInterop --splitting",
"release": "yarn build && yarn changeset publish"
},
"devDependencies": {
Expand All @@ -50,7 +50,7 @@
"eslint-plugin-sort": "^3.0.2",
"eslint-plugin-widen": "^2.0.0",
"prettier": "^3.2.5",
"tsup": "^7.3.0",
"tsup": "^8.2.4",
"typescript": "^5.4.5"
},
"dependencies": {
Expand Down
Loading
Loading