Skip to content

Commit

Permalink
update exports config (v0.3.1)
Browse files Browse the repository at this point in the history
- export charsets module
- export core module when in non-node environment by default
  • Loading branch information
fityannugroho committed Nov 19, 2023
1 parent f0f34c2 commit 9581846
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
{
"name": "wisely",
"version": "0.3.0",
"version": "0.3.1",
"description": "Obfuscating text or phrases with random uncommon characters to avoid banning.",
"type": "module",
"main": "dist/index.js",
"files": [
"charsets/",
"dist/"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./core": {
"types": "./dist/core.d.ts",
"node": "./dist/index.js",
"default": "./dist/core.js"
}
},
"./core": "./dist/core.js",
"./charsets/*": "./charsets/*"
},
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit 9581846

Please sign in to comment.