add module helper

This commit is contained in:
Robert Soriano
2022-10-30 17:00:19 -07:00
parent bdcff360f0
commit a7013db712
3 changed files with 28 additions and 7 deletions

View File

@@ -14,6 +14,9 @@
"./client": {
"require": "./dist/client/index.cjs",
"import": "./dist/client/index.mjs"
},
"./module": {
"import": "./module.mjs"
}
},
"main": "./dist/index.mjs",
@@ -21,7 +24,8 @@
"types": "./dist/index.d.ts",
"files": [
"dist",
"client.d.ts"
"client.d.ts",
"module.mjs"
],
"scripts": {
"prepublishOnly": "nr build",