Skip to content

Commit 81b81b9

Browse files
committed
Add CommonJS type declaration
1 parent 86690c5 commit 81b81b9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
"description": "Small, fast, zero dependency deep object and array comparison",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",
7-
"types": "./dist/index.d.ts",
87
"exports": {
98
"import": "./dist/index.js",
10-
"require": "./dist/index.cjs",
11-
"default": "./dist/index.js"
9+
"require": "./dist/index.cjs"
1210
},
1311
"scripts": {
14-
"build": "tsc --module CommonJS && cd dist && mv \"index.js\" \"index.cjs\" && cd ../ && tsc --module es2020 && npx prettier -w dist/*",
12+
"build": "tsc --module CommonJS && mv \"dist/index.js\" \"dist/index.cjs\" && mv \"dist/index.d.ts\" \"dist/index.d.cts\" && tsc --module es2020 && npx prettier -w dist/*",
1513
"test": "npm run build && node --test ./tests/*",
1614
"bench": "npm run build && node bench.js",
1715
"prepublish": "npm run build"

0 commit comments

Comments
 (0)