From fe3208aba56967878e54caf497b6c3b61b6506d5 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 12 Apr 2023 21:10:26 +0300 Subject: [PATCH] v1.1.1 --- package.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c4b20fb..dfd32a6 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,27 @@ { "name": "@navy.gif/discord-webhook", - "version": "1.1.0", + "version": "1.1.1", "description": "Client for interacting with discord webhooks", - "main": "build/index.js", + "author": "Navy.gif", "license": "MIT", "private": false, "type": "module", + "main": "build/cjs/index.js", + "module": "build/esm/index.js", + "types": "./build/esm/index.d.ts", + "exports": { + ".": { + "import": "./build/esm/index.js", + "require": "./build/cjs/index.js", + "default": "./build/cjs/index.js", + "types": "./build/esm/index.d.ts" + } + }, "files": [ - "build" + "build/**/*" ], "scripts": { - "build": "tsc", + "build": "tsc && tsc -p tsconfig.cjs.json && node ./scripts/declareTypes.js", "test": "tsc && jest", "release": "tsc && yarn publish", "lint": "eslint --fix"