Skip to content

Commit

Permalink
feat: export .d.cts & .d.mts for Node16
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Dec 22, 2022
1 parent dbaa005 commit 8516d5a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 279 deletions.
17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
"files": [
"dist"
],
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.cts",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"imports": {
"#get-tsconfig": {
Expand All @@ -52,7 +57,7 @@
"fs-fixture": "^1.2.0",
"jsonc-parser": "^3.2.0",
"manten": "^0.6.0",
"pkgroll": "^1.3.1",
"pkgroll": "^1.8.0",
"slash": "^5.0.0",
"tsx": "^3.12.1",
"type-fest": "^3.4.0",
Expand Down
Loading

0 comments on commit 8516d5a

Please sign in to comment.