Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix buf publishing with yarn v3. #726

Merged
merged 1 commit into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]