Skip to content

Commit 8251b8e

Browse files
committed
Revert "fix(pkg): add a default fallback export (#733)"
This reverts commit 81720c7.
1 parent 4aed459 commit 8251b8e

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ There is one method for each REST API endpoint documented at [https://developer.
5050

5151
## TypeScript
5252

53-
> [!IMPORTANT]
54-
> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `"moduleResolution": "node16", "module": "node16"`.
55-
>
56-
> See the TypeScript docs on [package.json "exports"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).<br>
57-
> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus)
58-
5953
Parameter and response types for all endpoint methods exported as `{ RestEndpointMethodTypes }`.
6054

6155
Example

scripts/build.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ async function main() {
5353
{
5454
...pkg,
5555
files: ["dist-*/**"],
56+
main: "./dist-src/index.js",
5657
types: "./dist-types/index.d.ts",
5758
exports: {
5859
".": {
5960
import: "./dist-src/index.js",
6061
types: "./dist-types/index.d.ts",
61-
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
62-
default: "./dist-types/index.js",
6362
},
6463
},
6564
sideEffects: false,

0 commit comments

Comments
 (0)