From 95818463f5c6f3aeba8755c2abf7409c0ccf3cc7 Mon Sep 17 00:00:00 2001 From: Fityan Date: Sun, 19 Nov 2023 10:44:43 +0700 Subject: [PATCH] update exports config (v0.3.1) - export charsets module - export core module when in non-node environment by default --- package-lock.json | 4 ++-- package.json | 13 +++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 93a01b5..0298851 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wisely", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wisely", - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.10.0", diff --git a/package.json b/package.json index 3df2e8a..99204b9 100644 --- a/package.json +++ b/package.json @@ -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 .",