Skip to content

Commit

Permalink
fix: Fix buf publishing with yarn v3. (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh authored Dec 9, 2022
1 parent 5ba3232 commit e125d2b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

supportedArchitectures:
cpu:
- current
Expand Down
8 changes: 4 additions & 4 deletions ts-proto.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM node:17-alpine as build

WORKDIR /ts-proto
COPY . .

# Install all dependencies needed for production build
Expand All @@ -11,14 +12,13 @@ RUN rm -rf node_modules
RUN yarn cache clean

# install production dependencies only
RUN yarn install --production
RUN yarn workspaces focus --production

FROM node:17-alpine

WORKDIR /ts-proto

COPY --from=build build build
COPY --from=build node_modules node_modules
COPY --from=build /ts-proto/build build
COPY --from=build /ts-proto/node_modules node_modules
COPY protoc-gen-ts_proto .

ENTRYPOINT ["./protoc-gen-ts_proto"]

0 comments on commit e125d2b

Please sign in to comment.