From 5bcb6feeacc4416234368e7ec2a8777e5b2f3712 Mon Sep 17 00:00:00 2001 From: nfel Date: Sat, 23 Nov 2024 12:52:20 +0330 Subject: [PATCH] v2: ci pkg Signed-off-by: nfel --- .gitea/workflows/buf-ci.yaml | 2 +- buf.gen.yaml | 2 +- package.json | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 package.json diff --git a/.gitea/workflows/buf-ci.yaml b/.gitea/workflows/buf-ci.yaml index 0094449..ea04612 100644 --- a/.gitea/workflows/buf-ci.yaml +++ b/.gitea/workflows/buf-ci.yaml @@ -18,7 +18,7 @@ jobs: - uses: bufbuild/buf-setup-action@v1.47.2 - run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest - - run: npm install --save-dev @bufbuild/protoc-gen-es + - run: npm install --save-dev @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf - run: buf --version - uses: actions/checkout@v4 with: diff --git a/buf.gen.yaml b/buf.gen.yaml index 8462320..fbd8b17 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -42,7 +42,7 @@ plugins: # - remote: buf.build/bufbuild/es:v2.2.2 # # opt: import_prefix=github.com/nfel # out: stub/ts - - local: protoc-gen-es + - local: node_modules/@bufbuild/protoc-gen-es/bin/protoc-gen-es out: stub/ts opt: target=ts diff --git a/package.json b/package.json new file mode 100644 index 0000000..b9a3d98 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "devDependencies": { + "@bufbuild/buf": "^1.47.2", + "@bufbuild/protobuf": "^2.2.2", + "@bufbuild/protoc-gen-es": "^2.2.2" + } +}