Skip to content

Commit

Permalink
fix: cjs types
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed May 18, 2022
1 parent dacbdd4 commit 1c23d43
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 2 additions & 0 deletions index.d.cts
@@ -0,0 +1,2 @@
export * from ".";
export { default } from ".";
22 changes: 16 additions & 6 deletions package.json
Expand Up @@ -10,15 +10,25 @@
},
"exports": {
".": {
"types": "./index.d.ts",
"import": "./entrypoints/main.mjs",
"require": "./entrypoints/main.cjs"
"import": {
"types": "./index.d.ts",
"default": "./entrypoints/main.mjs"
},
"require": {
"types": "./index.d.cts",
"default": "./entrypoints/main.cjs"
}
},
"./eslint-plugin-helper": "./entrypoints/eslint-plugin-helper.cjs",
"./plugin": {
"types": "./plugin.d.ts",
"import": "./entrypoints/plugin.mjs",
"require": "./entrypoints/plugin.cjs"
"import": {
"types": "./plugin.d.ts",
"default": "./entrypoints/plugin.mjs"
},
"require": {
"types": "./plugin.d.cts",
"default": "./entrypoints/plugin.cjs"
}
}
},
"type": "module",
Expand Down
2 changes: 2 additions & 0 deletions plugin.d.cts
@@ -0,0 +1,2 @@
export * from "./plugin";
export { default } from "./plugin";

0 comments on commit 1c23d43

Please sign in to comment.