Skip to content

Commit

Permalink
Merge pull request #10 from github/default-type-cjs
Browse files Browse the repository at this point in the history
Add `type: commonjs` package.json to cjs output
  • Loading branch information
dgreif authored May 3, 2022
2 parents 5954aa1 + f8f6a34 commit 9005798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"prebuild": "npm run clean && npm run lint && mkdir dist",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:cjs": "tsc --module commonjs --outDir dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"clean": "rm -rf dist",
"lint": "eslint --report-unused-disable-directives . --color --ext .js,.ts,.tsx && tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down

0 comments on commit 9005798

Please sign in to comment.