Skip to content

Commit e97ab67

Browse files
committed
chore: update bundle export fields
1 parent 4fd1e00 commit e97ab67

File tree

2 files changed

+58
-9
lines changed

2 files changed

+58
-9
lines changed

package.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,24 @@
1414
"bugs": "testing-library/eslint-plugin-testing-library/issues",
1515
"repository": "testing-library/eslint-plugin-testing-library",
1616
"license": "MIT",
17-
"author": "Mario Beltrán <https://mario.dev>",
17+
"author": "Mario Beltrán (https://mario.dev)",
1818
"files": [
19-
"dist",
20-
"README.md",
21-
"LICENSE",
22-
"index.d.ts"
19+
"dist"
2320
],
24-
"main": "./dist/index.js",
25-
"types": "index.d.ts",
21+
"type": "commonjs",
22+
"main": "./dist/index.cjs",
23+
"module": "./dist/index.mjs",
24+
"types": "./dist/index.d.cts",
25+
"exports": {
26+
".": {
27+
"import": "./dist/index.mjs",
28+
"require": "./dist/index.cjs"
29+
},
30+
"./package.json": "./package.json"
31+
},
2632
"scripts": {
2733
"build": "tsdown lib/index.ts --format esm --format cjs",
34+
"bundle-check": "pnpm run build & publint",
2835
"generate-all": "pnpm run --parallel \"/^generate:.*/\"",
2936
"generate-all:check": "pnpm run generate-all && git diff --exit-code",
3037
"generate:configs": "ts-node tools/generate-configs",
@@ -71,6 +78,7 @@
7178
"husky": "^9.1.7",
7279
"lint-staged": "^15.2.10",
7380
"prettier": "3.6.2",
81+
"publint": "^0.3.16",
7482
"semantic-release": "^25.0.2",
7583
"semver": "^7.6.3",
7684
"ts-node": "^10.9.2",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)