From 055f9b5661314f5e01f8dcc24eaaf29a3afa67a1 Mon Sep 17 00:00:00 2001 From: Fityan Date: Sun, 19 Nov 2023 11:37:30 +0700 Subject: [PATCH] update exports config (v0.3.2) - revert export core module when in non-node environment by default (9581846) - add `main` & `types` to support typing in .js --- package-lock.json | 4 ++-- package.json | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0298851..a1a9baf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wisely", - "version": "0.3.1", + "version": "0.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wisely", - "version": "0.3.1", + "version": "0.3.2", "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.10.0", diff --git a/package.json b/package.json index 99204b9..8bb6f3f 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,16 @@ { "name": "wisely", - "version": "0.3.1", + "version": "0.3.2", "description": "Obfuscating text or phrases with random uncommon characters to avoid banning.", "type": "module", "files": [ "charsets/", "dist/" ], + "main": "dist/index.js", + "types": "dist/index.d.ts", "exports": { - ".": { - "node": "./dist/index.js", - "default": "./dist/core.js" - }, + ".": "./dist/index.js", "./core": "./dist/core.js", "./charsets/*": "./charsets/*" },