Browse Source

fixed publishing issue

pull/882/head
Dan Ditomaso 8 months ago
parent
commit
88f3e5fb5c
  1. 6
      .github/workflows/release-protobufs.yml
  2. 8
      packages/protobufs/package.json
  3. 4
      packages/protobufs/packages/ts/deno.json
  4. 32
      packages/protobufs/packages/ts/package.json

6
.github/workflows/release-protobufs.yml

@ -29,7 +29,6 @@ jobs:
set -euxo pipefail
ls -la packages/ts || true
cat packages/ts/deno.json
cat packages/ts/package.json
- name: Determine VERSION
run: |
@ -48,7 +47,7 @@ jobs:
working-directory: packages/ts
run: |
set -euxo pipefail
for f in deno.json package.json; do
for f in deno.json; do
test -f "$f"
jq --arg version "${VERSION//\//-}" '
walk(
@ -123,9 +122,6 @@ jobs:
with:
name: ts_code
- name: Remove package.json (JSR doesn’t need it)
run: rm -f package.json
- name: Set up Deno
uses: denoland/setup-deno@main
with:

8
packages/protobufs/package.json

@ -1,8 +1,9 @@
{
"name": "@meshtastic/protobufs",
"version": "__PACKAGE_VERSION__",
"private": false,
"name": "@meshtastic/protobufs-ws",
"private": true,
"version": "0.0.0",
"type": "module",
"description": "Workspace package for Meshtastic protobuf stubs (local dev only). This package is published to the JSR registry separately.",
"license": "GPL-3.0-only",
"files": [
"./packages/ts/dist/"
@ -24,7 +25,6 @@
"dependencies": {},
"devDependencies": {
"@bufbuild/protoc-gen-es": "^1.9.0",
"fast-glob": "^3.3.2",
"rimraf": "^6.0.0"
}
}

4
packages/protobufs/packages/ts/deno.json

@ -1,6 +1,6 @@
{
"name": "@meshtastic/protobufs",
"version": "2.7.12",
"version": "__PACKAGE_VERSION__",
"exports": {
".": "./mod.ts"
},
@ -8,6 +8,6 @@
"@bufbuild/protobuf": "npm:@bufbuild/protobuf@^2.9.0"
},
"publish": {
"exclude": ["!lib"]
"exclude": ["!dist"]
}
}

32
packages/protobufs/packages/ts/package.json

@ -1,32 +0,0 @@
{
"name": "@meshtastic/protobufs",
"description": "Protobuf definitions for the Meshtastic project",
"version": "2.7.12",
"homepage": "https://github.com/meshtastic/protobufs",
"license": "GPLV3",
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "./dist/mod.js",
"module": "./dist/mod.js",
"types": "./dist/mod.d.ts",
"dependencies": {
"@bufbuild/protobuf": "^2.9.0"
},
"devDependencies": {
"tsdown": "^0.15.6",
"typescript": "^5.9.3"
},
"scripts": {
"build": "tsdown"
},
"tsdown": {
"entry": "mod.ts",
"dts": true,
"format": [
"esm"
],
"splitting": false
}
}
Loading…
Cancel
Save