Skip to content

Commit

Permalink
fix: include cjs as a possible target
Browse files Browse the repository at this point in the history
Signed-off-by: Yoriyasu Yano <[email protected]>
  • Loading branch information
yorinasub17 committed Oct 3, 2023
1 parent 7d4fa88 commit 80ff4cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ src
jest.config.cjs
decs.d.ts
tsconfig.json
.releaserc.yaml
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"bugs": {
"url": "https://github.com/fensak-io/reng/issues"
},
"type": "module",
"source": "src/index.ts",
"exports": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"targets": {
"module": {
"context": "node",
"optimize": true
"main": "./dist/index.cjs",
"module": "./dist/module.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/module.mjs",
"require": "./dist/index.cjs"
}
},
"scripts": {
Expand All @@ -37,7 +37,6 @@
"@jest/globals": "^29.7.0",
"@parcel/config-default": "2.9.3",
"@parcel/packager-ts": "2.9.3",
"@parcel/transformer-typescript-tsc": "2.9.3",
"@parcel/transformer-typescript-types": "2.9.3",
"@semantic-release/git": "^10.0.1",
"@types/babel__core": "^7.20.2",
Expand Down
17 changes: 0 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80ff4cb

Please sign in to comment.