Skip to content

Commit

Permalink
fix: Fix exported types (#583)
Browse files Browse the repository at this point in the history
<!-- 👋 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:
- [email protected]
- [email protected]

 No problems found 🌟


┌───────────────────┬─────────────────────┐
│                   │ "console-fail-test" │
├───────────────────┼─────────────────────┤
│ node10            │ 🟢                  │
├───────────────────┼─────────────────────┤
│ node16 (from CJS) │ 🟢 (CJS)            │
├───────────────────┼─────────────────────┤
│ node16 (from ESM) │ 🟢 (ESM)            │
├───────────────────┼─────────────────────┤
│ bundler           │ 🟢                  │
└───────────────────┴─────────────────────┘
```

💖

Co-authored-by: Joel Daros <[email protected]>
  • Loading branch information
joel-daros and Joel Daros committed Jul 11, 2024
1 parent c2a06f9 commit 09a48e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
"type": "module",
"exports": {
".": {
"types": {
"import": "./lib/index.d.mts",
"require": "./lib/index.d.ts"
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"import": "./lib/index.mjs",
"require": "./lib/index.js"
"require": {
"types": "./lib/index.d.cts",
"default": "./lib/index.cjs"
}
}
},
"main": "./lib/index.js",
Expand Down

0 comments on commit 09a48e2

Please sign in to comment.