From 61f045943cb9f71c3b3897fe09d2e7b0c48075d8 Mon Sep 17 00:00:00 2001 From: maze Date: Tue, 10 Mar 2026 12:24:36 +0100 Subject: [PATCH] Fix module exports --- package.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4c3eee9..dfbb98c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcore", - "version": "0.0.1", + "version": "1.0.0", "description": "MeshCore protocol support for Typescript", "keywords": [ "MeshCore", @@ -13,12 +13,19 @@ }, "license": "MIT", "author": "Wijnand Modderman-Lenstra", - "main": "dist/index.cjs.js", - "module": "dist/index.esm.js", + "main": "dist/index.js", + "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ "dist" ], + "exports": { + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + } + }, "scripts": { "build": "tsup src/index.ts --format cjs,esm --dts --out-dir dist", "dev": "tsup src/index.ts --format cjs,esm --dts --watch --out-dir dist",