Skip to content

Commit

Permalink
fix: build correct types for CommonJS users (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Aug 2, 2024
1 parent 3a41b98 commit c58acb8
Show file tree
Hide file tree
Showing 6 changed files with 708 additions and 100 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"node": true,
"commonjs": true
},
"ignorePatterns": ["tsup.config.ts"],
"rules": {
"import/no-extraneous-dependencies": "off",
"no-restricted-syntax": "off",
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.cts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.cjs"
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"files": [
"dist/**"
Expand All @@ -41,7 +40,7 @@
"nano-staged": "^0.5.0",
"p-limit": "^4.0.0",
"size-limit": "^7.0.8",
"tsup": "^5.11.7",
"tsup": "^8.2.3",
"typescript": "^5.2.2",
"vite": "^2.9.12",
"vitest": "^0.34.6"
Expand Down
Loading

0 comments on commit c58acb8

Please sign in to comment.