@towns-protocol/xchain-monitor 0.0.430 → 0.0.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +11 -10
- package/Dockerfile +13 -19
- package/dist/node_esbuild.cjs +5835 -5856
- package/dist/node_esbuild.cjs.map +4 -4
- package/dist/pino-file.cjs +204 -104
- package/dist/pino-file.cjs.map +3 -3
- package/dist/pino-pretty.cjs +134 -102
- package/dist/pino-pretty.cjs.map +3 -3
- package/dist/pino-worker.cjs +213 -6231
- package/dist/pino-worker.cjs.map +4 -4
- package/dist/thread-stream-worker.cjs +8 -12
- package/dist/thread-stream-worker.cjs.map +3 -3
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
$ bun ./esbuild.config.mjs
|
|
1
2
|
|
|
2
|
-
dist/node_esbuild.cjs 3.
|
|
3
|
-
dist/pino-worker.cjs
|
|
4
|
-
dist/pino-file.cjs
|
|
5
|
-
dist/pino-pretty.cjs
|
|
6
|
-
dist/thread-stream-worker.cjs 6.
|
|
7
|
-
dist/node_esbuild.cjs.map 6.
|
|
8
|
-
dist/pino-worker.cjs.map
|
|
9
|
-
dist/pino-file.cjs.map
|
|
10
|
-
dist/pino-pretty.cjs.map
|
|
3
|
+
dist/node_esbuild.cjs 3.3mb ⚠️
|
|
4
|
+
dist/pino-worker.cjs 155.7kb
|
|
5
|
+
dist/pino-file.cjs 144.7kb
|
|
6
|
+
dist/pino-pretty.cjs 114.6kb
|
|
7
|
+
dist/thread-stream-worker.cjs 6.6kb
|
|
8
|
+
dist/node_esbuild.cjs.map 6.6mb
|
|
9
|
+
dist/pino-worker.cjs.map 265.2kb
|
|
10
|
+
dist/pino-file.cjs.map 237.2kb
|
|
11
|
+
dist/pino-pretty.cjs.map 203.6kb
|
|
11
12
|
dist/thread-stream-worker.cjs.map 12.0kb
|
|
12
13
|
|
|
13
|
-
⚡ Done in
|
|
14
|
+
⚡ Done in 1217ms
|
package/Dockerfile
CHANGED
|
@@ -5,23 +5,17 @@ WORKDIR /river
|
|
|
5
5
|
# Install build dependencies
|
|
6
6
|
RUN apt-get update && \
|
|
7
7
|
apt-get install -y --no-install-recommends \
|
|
8
|
-
git curl ca-certificates build-essential && \
|
|
8
|
+
git curl ca-certificates build-essential unzip && \
|
|
9
9
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
10
10
|
|
|
11
|
-
# Install
|
|
12
|
-
RUN curl -fsSL https://
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
# Enable Corepack and install Yarn
|
|
17
|
-
RUN corepack enable && \
|
|
18
|
-
corepack prepare yarn@3.8.0 --activate
|
|
11
|
+
# Install Bun
|
|
12
|
+
RUN curl -fsSL https://bun.sh/install | bash && \
|
|
13
|
+
ln -s /root/.bun/bin/bun /usr/local/bin/bun && \
|
|
14
|
+
ln -s /root/.bun/bin/bunx /usr/local/bin/bunx
|
|
19
15
|
|
|
20
16
|
# Copy monorepo configuration for dependency resolution
|
|
21
|
-
COPY
|
|
22
|
-
COPY .
|
|
23
|
-
COPY .yarn/plugins .yarn/plugins
|
|
24
|
-
COPY packages/tsconfig.base.json ./packages/
|
|
17
|
+
COPY buf.yaml bunfig.toml bun.lock package.json turbo.json ./
|
|
18
|
+
COPY ./packages/tsconfig.base.json ./packages/tsconfig.base.json
|
|
25
19
|
|
|
26
20
|
# Copy workspace package.json files for dependency resolution
|
|
27
21
|
COPY ./packages/xchain-monitor/package.json ./packages/xchain-monitor/
|
|
@@ -35,7 +29,7 @@ COPY ./packages/prettier-config/package.json ./packages/prettier-config/
|
|
|
35
29
|
COPY ./protocol/package.json ./protocol/
|
|
36
30
|
|
|
37
31
|
# Install dependencies (cached unless package.json files change)
|
|
38
|
-
RUN
|
|
32
|
+
RUN bun install && bun pm cache rm
|
|
39
33
|
|
|
40
34
|
# Copy remaining source code (only packages needed for build)
|
|
41
35
|
COPY ./protocol ./protocol
|
|
@@ -46,17 +40,17 @@ COPY ./packages/web3 ./packages/web3
|
|
|
46
40
|
COPY ./packages/utils ./packages/utils
|
|
47
41
|
COPY ./packages/xchain-monitor ./packages/xchain-monitor
|
|
48
42
|
|
|
49
|
-
RUN
|
|
43
|
+
RUN bun run turbo build --filter @towns-protocol/xchain-monitor...
|
|
50
44
|
|
|
51
45
|
# create runner image with only the necessary files
|
|
52
|
-
FROM
|
|
46
|
+
FROM oven/bun:1.3-alpine AS runner
|
|
53
47
|
|
|
54
48
|
COPY --from=builder /river/packages/xchain-monitor/dist /river/packages/xchain-monitor/dist
|
|
55
49
|
|
|
56
50
|
# install dd-trace again (because the bundler excludes some of the sub-dependencies)
|
|
57
51
|
WORKDIR /river/packages/xchain-monitor
|
|
58
|
-
RUN
|
|
59
|
-
RUN
|
|
52
|
+
RUN bun init --yes
|
|
53
|
+
RUN bun add dd-trace@^5.19.0 && bun pm cache rm
|
|
60
54
|
|
|
61
55
|
# run the service
|
|
62
56
|
ARG GIT_SHA
|
|
@@ -65,4 +59,4 @@ ENV DD_GIT_REPOSITORY_URL="https://github.com/towns-protocol/towns" \
|
|
|
65
59
|
DD_GIT_COMMIT_SHA=${GIT_SHA} \
|
|
66
60
|
NODE_ENV=production
|
|
67
61
|
|
|
68
|
-
CMD ["
|
|
62
|
+
CMD ["bun", "./dist/node_esbuild.cjs"]
|