Skip to content

Commit

Permalink
Added CommonJS support
Browse files Browse the repository at this point in the history
  • Loading branch information
AsyncBanana committed Nov 7, 2021
1 parent 5e70ea4 commit 4b627d9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
"name": "microdiff",
"version": "1.0.2",
"description": "Small, fast, zero dependency deep object and array comparison",
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"exports": "./dist/index.js",
"exports": {
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"scripts": {
"build": "tsc && prettier -w dist/* --loglevel warn",
"build": "tsc --module CommonJS && cd dist && mv \"index.js\" \"index.cjs\" && cd ../ && tsc --module es2020 && prettier -w dist/* --loglevel warn",
"test": "npm run build && uvu tests",
"bench": "npm run build && node bench.js",
"prepublish": "npm run build"
Expand Down

0 comments on commit 4b627d9

Please sign in to comment.