Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleecode committed Oct 23, 2024
1 parent 43a5552 commit bcaae86
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cp lib_web/rregex_bg.wasm.d.ts lib/rregex.wasm.d.ts
cp lib_cf/cf.mjs lib/cf.mjs

cp lib_nodejs/rregex.js lib/commonjs.cjs
cp lib_nodejs/rregex.d.ts lib/commonjs.d.ts
cp lib_nodejs/rregex.d.ts lib/commonjs.d.cts

cp lib_no_modules/rregex.js lib/standalone.js
cp lib_no_modules/rregex.d.ts lib/standalone.d.ts
Expand Down
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,26 @@
"private": false,
"type": "module",
"main": "./lib/commonjs.cjs",
"types": "./lib/commonjs.d.cts",
"module": "./lib/esm.mjs",
"browser": "./lib/web.js",
"types": "./lib/types.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./lib/esm.d.ts",
"default": "./lib/esm.mjs"
},
"require": {
"types": "./lib/commonjs.d.cts",
"default": "./lib/commonjs.cjs"
},
"browser": {
"types": "./lib/web.d.ts",
"default": "./lib/web.js"
}
}
},
"publishConfig": {
"provenance": true
},
Expand Down

0 comments on commit bcaae86

Please sign in to comment.