Skip to content

Commit

Permalink
try workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Dec 18, 2024
1 parent a13802d commit fbeefa5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM public.ecr.aws/docker/library/node:20 AS builder

RUN npm install -g typescript bun

WORKDIR /app
COPY drift-common /app/drift-common

COPY . .
RUN bun install
WORKDIR /app/drift-common/protocol/sdk
RUN bun install && yarn build
RUN yarn build
WORKDIR /app/drift-common/common-ts
RUN bun install && yarn build
RUN yarn build
WORKDIR /app
RUN bun install && bun esbuild.config.js
RUN bun esbuild.config.js

FROM public.ecr.aws/docker/library/node:20-alpine
COPY --from=builder /app/lib/ ./lib/
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,9 @@
"lint": "eslint . --ext ts --quiet",
"lint:fix": "eslint . --ext ts --fix",
"playground": "ts-node src/playground.ts"
}
},
"workspaces": [
"drift-common/protocol/sdk",
"drift-common/common-ts"
]
}

0 comments on commit fbeefa5

Please sign in to comment.