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

8
packages/protobufs/package.json

@ -1,8 +1,9 @@
{ {
"name": "@meshtastic/protobufs", "name": "@meshtastic/protobufs-ws",
"version": "__PACKAGE_VERSION__", "private": true,
"private": false, "version": "0.0.0",
"type": "module", "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", "license": "GPL-3.0-only",
"files": [ "files": [
"./packages/ts/dist/" "./packages/ts/dist/"
@ -24,7 +25,6 @@
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"@bufbuild/protoc-gen-es": "^1.9.0", "@bufbuild/protoc-gen-es": "^1.9.0",
"fast-glob": "^3.3.2",
"rimraf": "^6.0.0" "rimraf": "^6.0.0"
} }
} }

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

@ -1,6 +1,6 @@
{ {
"name": "@meshtastic/protobufs", "name": "@meshtastic/protobufs",
"version": "2.7.12", "version": "__PACKAGE_VERSION__",
"exports": { "exports": {
".": "./mod.ts" ".": "./mod.ts"
}, },
@ -8,6 +8,6 @@
"@bufbuild/protobuf": "npm:@bufbuild/protobuf@^2.9.0" "@bufbuild/protobuf": "npm:@bufbuild/protobuf@^2.9.0"
}, },
"publish": { "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