Skip to content
Merged
Prev Previous commit
Next Next commit
Remove types subdirectory from dist
  • Loading branch information
MajorLift committed May 21, 2024
commit c6a9d0c10e04365e119ec4d80fba9413c2d2d070
16 changes: 3 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,19 @@
"exports": {
".": {
"import": {
"types": "./dist/types/index.d.mts",
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/types/index.d.cts",
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./node": {
"import": {
"types": "./dist/types/node.d.mts",
"default": "./dist/node.mjs"
},
"require": {
"types": "./dist/types/node.d.cts",
"default": "./dist/node.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.cts",
"types": "./dist/index.d.cts",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"emitDeclarationOnly": true,
"inlineSources": true,
"noEmit": false,
"outDir": "dist/types",
"outDir": "dist",
"rootDir": "src",
"sourceMap": true
},
Expand Down