Fix module exports

This commit is contained in:
2026-03-10 12:24:36 +01:00
parent 91299af3eb
commit 61f045943c

View File

@@ -1,6 +1,6 @@
{ {
"name": "meshcore", "name": "meshcore",
"version": "0.0.1", "version": "1.0.0",
"description": "MeshCore protocol support for Typescript", "description": "MeshCore protocol support for Typescript",
"keywords": [ "keywords": [
"MeshCore", "MeshCore",
@@ -13,12 +13,19 @@
}, },
"license": "MIT", "license": "MIT",
"author": "Wijnand Modderman-Lenstra", "author": "Wijnand Modderman-Lenstra",
"main": "dist/index.cjs.js", "main": "dist/index.js",
"module": "dist/index.esm.js", "module": "dist/index.mjs",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"scripts": { "scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --out-dir dist", "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", "dev": "tsup src/index.ts --format cjs,esm --dts --watch --out-dir dist",