Skip to content

Commit

Permalink
only export bin as a cjs
Browse files Browse the repository at this point in the history
It's only loaded that way, no need to be built for esm.
  • Loading branch information
isaacs committed Jan 16, 2023
1 parent a3cb91b commit cb063fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"native"
],
"main": "./dist/cjs/src/index-cjs.js",
"module": "./dist/mjs/src/index.js",
"module": "./dist/mjs/index.js",
"bin": "./dist/cjs/src/bin.js",
"exports": {
".": {
"import": {
"default": "./dist/mjs/src/index.js",
"types": "./dist/mjs/src/index.d.ts"
"default": "./dist/mjs/index.js",
"types": "./dist/mjs/index.d.ts"
},
"require": {
"default": "./dist/cjs/src/index-cjs.js",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig-base.json",
"exclude": ["./test", "./tap-snapshots", "src/index-cjs.ts"],
"exclude": ["./test", "./tap-snapshots", "src/index-cjs.ts", "src/bin.ts"],
"compilerOptions": {
"module": "esnext",
"outDir": "dist/mjs"
Expand Down

0 comments on commit cb063fa

Please sign in to comment.