From d898aacc48222268694d05451bfa4f986d6d47ac Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Thu, 22 Oct 2026 10:13:22 -0500 Subject: [PATCH] Update community/stephenh-ts-proto to v2.18.1 Needed to update the Dockerfile to use node as the base image (similar change made recently for bufbuild/es). --- .../stephenh-ts-proto/v2.18.1/.dockerignore | 3 + .../stephenh-ts-proto/v2.18.1/Dockerfile | 16 ++++ .../stephenh-ts-proto/v2.18.1/buf.plugin.yaml | 10 +++ .../v2.18.1/package-lock.json | 87 +++++++++++++++++++ .../stephenh-ts-proto/v2.18.1/package.json | 7 ++ .../v2.18.1/eliza/plugin.sum | 1 + .../v2.18.1/petapis/plugin.sum | 1 + 7 files changed, 125 insertions(+) create mode 100644 plugins/community/stephenh-ts-proto/v2.18.1/.dockerignore create mode 100644 plugins/community/stephenh-ts-proto/v2.18.1/Dockerfile create mode 100644 plugins/community/stephenh-ts-proto/v2.18.1/buf.plugin.yaml create mode 100644 plugins/community/stephenh-ts-proto/v2.18.1/package-lock.json create mode 100644 plugins/community/stephenh-ts-proto/v2.18.1/package.json create mode 100644 tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/petapis/plugin.sum diff --git a/plugins/community/stephenh-ts-proto/v2.18.1/.dockerignore b/plugins/community/stephenh-ts-proto/v2.18.1/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.18.1/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/community/stephenh-ts-proto/v2.18.1/Dockerfile b/plugins/community/stephenh-ts-proto/v2.18.1/Dockerfile new file mode 100644 index 000000000..15d1dcde3 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.18.1/Dockerfile @@ -0,0 +1,16 @@ +# syntax=docker/dockerfile:1.27 +FROM node:26.12.0-trixie@sha256:1b84b89ada025e3b14543cbb837ffaa1c1b5273b841c5b94dd1a8f9c1d8cf7fe AS build +WORKDIR /app +COPY --link package*.json . +RUN npm ci +RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto \ + && rm -f /app/node_modules/dprint-node/*darwin*.node /app/node_modules/dprint-node/*win32*.node + +FROM gcr.io/distroless/nodejs26-debian13:latest@sha256:456bd22a48bc4b8b82b19041d7d9ff9c14e4ff0b80ea32c0b912be2f8288dbf7 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT ["/nodejs/bin/node"] +CMD [ "/app/node_modules/.bin/protoc-gen-ts_proto" ] diff --git a/plugins/community/stephenh-ts-proto/v2.18.1/buf.plugin.yaml b/plugins/community/stephenh-ts-proto/v2.18.1/buf.plugin.yaml new file mode 100644 index 000000000..1e3cb369d --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.18.1/buf.plugin.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/community/stephenh-ts-proto +plugin_version: v2.18.1 +source_url: https://github.com/stephenh/ts-proto +integration_guide_url: https://github.com/stephenh/ts-proto#quickstart +description: An idiomatic protobuf generator for TypeScript. +output_languages: + - typescript +spdx_license_id: Apache-2.0 +license_url: https://github.com/stephenh/ts-proto/blob/v2.18.1/LICENSE diff --git a/plugins/community/stephenh-ts-proto/v2.18.1/package-lock.json b/plugins/community/stephenh-ts-proto/v2.18.1/package-lock.json new file mode 100644 index 000000000..e7b9ddc8a --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.18.1/package-lock.json @@ -0,0 +1,87 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "2.18.1" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.16.0.tgz", + "integrity": "sha512-FWa0sPlqYGJgpTs6OxBRcL/AW4JT0OIO+W1ajerluoTVh8CV0B7XM1qsNCRgnkSCkRCgOICKHRQlY17jrsm0+Q==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", + "license": "MIT", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dprint-node": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.8.tgz", + "integrity": "sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==", + "license": "MIT", + "dependencies": { + "detect-libc": "^1.0.3" + } + }, + "node_modules/ts-poet": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.12.0.tgz", + "integrity": "sha512-xo+iRNMWqyvXpFTaOAvLPA5QAWO6TZrSUs5s4Odaya3epqofBu/fMLHEWl8jPmjhA0s9sgj9sNvF1BmaQlmQkA==", + "license": "Apache-2.0", + "dependencies": { + "dprint-node": "^1.0.8" + } + }, + "node_modules/ts-proto": { + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.18.1.tgz", + "integrity": "sha512-xnAqJ0Pog9wHhg2HcOSwJKiQt28n7un+novdUnAOhR70sTlwecQLBIZaf59wJdfSbipGajPVP47p9PSdJPHhiw==", + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.14.1", + "case-anything": "^2.1.13", + "ts-poet": "^6.12.0", + "ts-proto-descriptors": "2.1.0" + }, + "bin": { + "protoc-gen-ts_proto": "protoc-gen-ts_proto" + } + }, + "node_modules/ts-proto-descriptors": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.1.0.tgz", + "integrity": "sha512-S5EZYEQ6L9KLFfjSRpZWDIXDV/W7tAj8uW7pLsihIxyr62EAVSiKuVPwE8iWnr849Bqa53enex1jhDUcpgquzA==", + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0" + } + } + } +} diff --git a/plugins/community/stephenh-ts-proto/v2.18.1/package.json b/plugins/community/stephenh-ts-proto/v2.18.1/package.json new file mode 100644 index 000000000..38a869ba5 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v2.18.1/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "2.18.1" + } +} diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/eliza/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/eliza/plugin.sum new file mode 100644 index 000000000..b3f1c6911 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:jPq5p2SmtrVQWAsMkSCzmfW5GeyHKYgq8UsPmWTcno4= diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/petapis/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/petapis/plugin.sum new file mode 100644 index 000000000..9bf1e89f3 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v2.18.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:q2pkub/K4X+oyxiYQT6+5oTV4C1VBcbBRbpiLPZjKxk=