Skip to content

Commit

Permalink
fix: define exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Feb 25, 2021
1 parent 562655f commit 66a0d26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"boolean": "^3.0.2",
"detect-node": "^2.0.4",
"fast-json-stringify": "^2.4.2",
"fast-printf": "^1.6.1",
"fast-printf": "^1.6.2",
"globalthis": "^1.0.2",
"is-circular": "^1.0.2",
"json-stringify-safe": "^5.0.1",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"exports": {
".": {
"default": "./dist/esm/src/log.js",
"import": "./dist/esm/src/log.js",
"require": "./dist/cjs/src/log.js"
}
},
Expand All @@ -76,7 +76,7 @@
},
"scripts": {
"benchmark": "ROARR_LOG=true ts-node --transpile-only test/benchmark.ts",
"build": "del-cli ./dist && tsc && tsc -p tsconfig-esm.json",
"build": "del-cli ./dist && tsc && tsc -p tsconfig-esm.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
"create-readme": "gitdown ./.README/README.md --output-file ./README.md",
"dev": "tsc --watch",
"lint": "eslint ./src ./test && tsc --noEmit",
Expand Down

0 comments on commit 66a0d26

Please sign in to comment.