Skip to content

Commit a873729

Browse files
authored
Update community/stephenh-ts-proto to v2.3.0 (#1595)
1 parent cb697a5 commit a873729

File tree

7 files changed

+128
-0
lines changed

7 files changed

+128
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!package*.json
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# syntax=docker/dockerfile:1.10
2+
FROM node:22.11.0-bookworm AS build
3+
WORKDIR /app
4+
COPY --link package*.json .
5+
RUN npm ci
6+
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto \
7+
&& rm -f /app/node_modules/dprint-node/*darwin*.node /app/node_modules/dprint-node/*win32*.node
8+
9+
FROM gcr.io/distroless/nodejs22-debian12:latest@sha256:c218f62198d07fc67e36fff5639985f29b1bdcf04a601c1d23c0ab1121f55f0b AS node
10+
11+
FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=node --chmod=0755 /nodejs/bin/node /nodejs/bin/node
16+
COPY --link --from=build /app /app
17+
USER nobody
18+
ENTRYPOINT ["/nodejs/bin/node"]
19+
CMD [ "/app/node_modules/.bin/protoc-gen-ts_proto" ]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1
2+
name: buf.build/community/stephenh-ts-proto
3+
plugin_version: v2.3.0
4+
source_url: https://github.com/stephenh/ts-proto
5+
integration_guide_url: https://github.com/stephenh/ts-proto#quickstart
6+
description: An idiomatic protobuf generator for TypeScript.
7+
output_languages:
8+
- typescript
9+
spdx_license_id: Apache-2.0
10+
license_url: https://github.com/stephenh/ts-proto/blob/v2.3.0/LICENSE

plugins/community/stephenh-ts-proto/v2.3.0/package-lock.json

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "plugins-stephenh-ts-proto",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"ts-proto": "2.3.0"
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:lTQoEljena4SJd63iBCJ/LbWcveGgRtwrb5mFskNn20=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:4Pd/uU6S1+Gb6KLVUxBNKsRE17X9iReiiUMPUglixOM=

0 commit comments

Comments
 (0)