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",