Skip to content

Commit 3fb76e6

Browse files
committed
todo: Recursive builds, fix megalodon?
1 parent 8337b3f commit 3fb76e6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.travis
44
.vscode
55
.config
6+
.cache
67
Dockerfile
78
build/
89
built/

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ RUN apk add --update python3 && ln -sf python3 /usr/bin/python
1414
# RUN apt install -y python3 python3-pip
1515
RUN python3 -m ensurepip
1616
RUN pip3 install --no-cache --upgrade pip setuptools
17-
18-
# RUN corepack enable
17+
# TODO: Recursive build script https://github.com/oven-sh/bun/issues/5350
18+
RUN corepack enable
1919

2020
WORKDIR /sharkey
2121

@@ -25,7 +25,7 @@ RUN git submodule update --init --recursive
2525
# RUN pnpm config set fetch-retries 5
2626
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
2727
bun i --aggregate-output --frozen-lockfile --cache-dir=.cache
28-
RUN bun run --bun build
28+
RUN bun run build
2929
RUN bun scripts/trim-deps.mjs
3030
RUN mv packages/frontend/assets sharkey-assets
3131
# RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"build-pre": "node ./scripts/build-pre.js",
1616
"build-assets": "node ./scripts/build-assets.mjs",
17-
"build": "bun run --bun build-pre && bun run --bun -r build && bun run --bun build-assets",
17+
"build": "bun run --bun build-pre && pnpm -r build && bun run --bun build-assets",
1818
"build-storybook": "bun run --bun --filter frontend build-storybook",
1919
"build-misskey-js-with-types": "bun run --bun build-pre && bun run --bun --filter backend... --filter=!misskey-js build && bun run --bun --filter backend generate-api-json && ncp packages/backend/built/api.json packages/misskey-js/generator/api.json && bun run --bun --filter misskey-js update-autogen-code && bun run --bun --filter misskey-js build && bun run --bun --filter misskey-js api",
2020
"start": "cd packages/backend && node ./built/boot/entry.js",
@@ -48,7 +48,6 @@
4848
"ignore-walk": "6.0.4",
4949
"js-yaml": "4.1.0",
5050
"postcss": "^8.4.38",
51-
"re2": "^1.21.3",
5251
"tar": "6.2.0",
5352
"terser": "^5.31.1",
5453
"yaml": "^2.4.5"

0 commit comments

Comments
 (0)