Add npm publishing of JS libs (#702)

* feat: publish js libs to npm

* changed license type

* updated readme

* added id

* added exclusion for web and deno packages

* update comment

* updating env var
This commit is contained in:
Dan Ditomaso
2025-07-10 12:28:23 -04:00
committed by GitHub
parent 66b839742a
commit 7f177f6b83
20 changed files with 317 additions and 78 deletions
+13
View File
@@ -8,8 +8,12 @@
"./packages/transport-web-bluetooth",
"./packages/transport-web-serial"
],
"tasks": {
"build:npm": "deno run -A scripts/build_npm_package.ts"
},
"imports": {
"@bufbuild/protobuf": "npm:@bufbuild/protobuf@^2.2.3",
"@deno/dnt": "jsr:@deno/dnt@^0.42.1",
"@meshtastic/protobufs": "jsr:@meshtastic/protobufs@^2.7.0",
"@types/node": "npm:@types/node@^22.13.10",
"ste-simple-events": "npm:ste-simple-events@^3.0.11",
@@ -33,5 +37,14 @@
},
"unstable": [
"sloppy-imports"
],
"exclude": [
"node_modules",
"dist",
"npm",
"build",
"coverage",
"out",
".vscode-test"
]
}