Skip to content

Commit

Permalink
add support for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 19, 2024
1 parent 4e04343 commit 36b23fd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"url": "https://github.com/achingbrain/uint8arraylist/issues"
},
"type": "module",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"files": [
"src",
Expand All @@ -23,7 +24,8 @@
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
"import": "./dist/src/index.js",
"require": "./dist/cjs/src/index.js"
}
},
"eslintConfig": {
Expand Down Expand Up @@ -122,7 +124,8 @@
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check",
"build": "aegir build",
"build": "aegir build && npm run build:cjs",
"build:cjs": "tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"test": "aegir test",
"test:chrome": "aegir test -t browser --cov",
"test:chrome-webworker": "aegir test -t webworker",
Expand All @@ -140,6 +143,7 @@
"aegir": "^41.1.9",
"benchmark": "^2.1.4",
"bl": "^6.0.0",
"it-all": "^3.0.4"
"it-all": "^3.0.4",
"typescript": "^5.6.3"
}
}

0 comments on commit 36b23fd

Please sign in to comment.