From 38ba6d570d872c01bffb9182eb3ee063af2257da Mon Sep 17 00:00:00 2001 From: Waryen Date: Fri, 25 Nov 2022 21:49:10 +0100 Subject: [PATCH] fix(package.json): add entry point to builds --- package.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 46e934c..79ea40c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,9 @@ "name": "dimevh", "version": "0.2.1", "description": "A simple wizard for React 🧙‍♂️", - "main": "dist/index.js", + "main": "./dist/cjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/esm/index.d.ts", "scripts": { "lint": "eslint --fix \"{**/*,*}.{js,ts,jsx,tsx}\"", "build": "npm run build:esm && npm run build:cjs", @@ -11,6 +13,10 @@ "prepare": "npx husky install", "release": "release-it" }, + "repository": { + "type": "git", + "url": "https://github.com/Waryen/dimevh" + }, "keywords": [ "javascript", "typescript", @@ -20,6 +26,10 @@ ], "author": "Waryen (https://jonathangomand.be)", "license": "MIT", + "bugs": { + "url": "https://github.com/Waryen/dimevh/issues" + }, + "homepage": "https://github.com/Waryen/dimevh", "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" @@ -37,5 +47,9 @@ "husky": "^8.0.2", "release-it": "^15.5.0", "typescript": "^4.8.2" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" } }