@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.
@@ -1,13 +1,14 @@
1
+ $ bun ./esbuild.config.mjs
1
2
 
2
- dist/node_esbuild.cjs 3.2mb ⚠️
3
- dist/pino-worker.cjs 352.1kb
4
- dist/pino-file.cjs 138.1kb
5
- dist/pino-pretty.cjs 110.6kb
6
- dist/thread-stream-worker.cjs 6.4kb
7
- dist/node_esbuild.cjs.map 6.5mb
8
- dist/pino-worker.cjs.map 613.3kb
9
- dist/pino-file.cjs.map 228.3kb
10
- dist/pino-pretty.cjs.map 200.2kb
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 1010ms
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 Node.js 20
12
- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
13
- apt-get install -y nodejs && \
14
- apt-get clean && rm -rf /var/lib/apt/lists/*
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 package.json yarn.lock .yarnrc.yml turbo.json buf.yaml ./
22
- COPY .yarn/releases .yarn/releases
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 yarn install && yarn cache clean
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 yarn run turbo build --filter @towns-protocol/xchain-monitor...
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 node:lts-alpine3.20 AS runner
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 yarn init --yes
59
- RUN yarn add dd-trace@^5.19.0 && yarn cache clean
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 ["node", "--enable-source-maps", "--max-old-space-size=4096", "./dist/node_esbuild.cjs"]
62
+ CMD ["bun", "./dist/node_esbuild.cjs"]