Skip to content

Commit

Permalink
fix: make build:review compatible with 🥔s and 🧮s
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Sep 4, 2024
1 parent 16b6b34 commit 3d3700c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
FROM node:18 AS build
ARG command
ENV USE_ONE_DIST_DIR=true
FROM node:18
RUN corepack enable

WORKDIR /talisman
COPY . ./

RUN pnpm install
RUN pnpm $command

FROM scratch AS export
COPY --from=build /talisman/apps/extension/dist/*.zip /
ENV USE_ONE_DIST_DIR=true
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"build:extension:canary:firefox": "turbo run build:extension:canary:firefox",
"build:extension:prod": "turbo run build:extension:prod",
"build:extension:prod:firefox": "turbo run build:extension:prod:firefox",
"build:review": "docker build . --build-arg command=build:extension:prod --target export --output review",
"build:review:firefox": "docker build . --build-arg command=build:extension:prod:firefox --target export --output review",
"build:review": "rm -rf review && mkdir review && docker build . --tag talisman-builder && docker run --rm --volume ./review:/review bash -c 'pnpm build:extension:prod && cp /talisman/apps/extension/dist/*.zip /review/'",
"build:review:firefox": "rm -rf review && mkdir review && docker build . --tag talisman-builder && docker run --rm --volume ./review:/review bash -c 'pnpm build:extension:prod:firefox && cp /talisman/apps/extension/dist/*.zip /review/'",
"lint": "pnpm run -r --parallel lint",
"test": "pnpm run -r --parallel test",
"clean": "pnpm run -r --parallel clean & rm -rf dist .turbo node_modules & wait"
Expand Down

0 comments on commit 3d3700c

Please sign in to comment.