Skip to content

Commit 09a48e2

Browse files
joel-darosJoel Daros
and
Joel Daros
authoredJul 11, 2024··
fix: Fix exported types (#583)
<!-- 👋 Hi, thanks for sending a PR to console-fail-test! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [X] Addresses an existing open issue: fixes #531 - [X] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/console-fail-test/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [X] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/console-fail-test/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Fixed an issue regarding the exported types definitions in the `package.json` : ```shell $ npx -y @arethetypeswrong/cli -P console-fail-test v0.4.0 Build tools: - typescript@5.5.3 - tsup@8.1.0 No problems found 🌟 ┌───────────────────┬─────────────────────┐ │ │ "console-fail-test" │ ├───────────────────┼─────────────────────┤ │ node10 │ 🟢 │ ├───────────────────┼─────────────────────┤ │ node16 (from CJS) │ 🟢 (CJS) │ ├───────────────────┼─────────────────────┤ │ node16 (from ESM) │ 🟢 (ESM) │ ├───────────────────┼─────────────────────┤ │ bundler │ 🟢 │ └───────────────────┴─────────────────────┘ ``` 💖 Co-authored-by: Joel Daros <joel.daros@corteva.com>
1 parent c2a06f9 commit 09a48e2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
"type": "module",
1515
"exports": {
1616
".": {
17-
"types": {
18-
"import": "./lib/index.d.mts",
19-
"require": "./lib/index.d.ts"
17+
"import": {
18+
"types": "./lib/index.d.ts",
19+
"default": "./lib/index.js"
2020
},
21-
"import": "./lib/index.mjs",
22-
"require": "./lib/index.js"
21+
"require": {
22+
"types": "./lib/index.d.cts",
23+
"default": "./lib/index.cjs"
24+
}
2325
}
2426
},
2527
"main": "./lib/index.js",

0 commit comments

Comments
 (0)
Please sign in to comment.