@towns-protocol/xchain-monitor 0.0.430 → 0.0.432

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 1239ms
package/Dockerfile CHANGED
@@ -5,23 +5,22 @@ 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
11
+ # Install Node.js (needed for npm pack in @towns-protocol/generated build)
12
12
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
13
13
  apt-get install -y nodejs && \
14
14
  apt-get clean && rm -rf /var/lib/apt/lists/*
15
15
 
16
- # Enable Corepack and install Yarn
17
- RUN corepack enable && \
18
- corepack prepare yarn@3.8.0 --activate
16
+ # Install Bun
17
+ RUN curl -fsSL https://bun.sh/install | bash && \
18
+ ln -s /root/.bun/bin/bun /usr/local/bin/bun && \
19
+ ln -s /root/.bun/bin/bunx /usr/local/bin/bunx
19
20
 
20
21
  # 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/
22
+ COPY buf.yaml bunfig.toml bun.lock package.json turbo.json ./
23
+ COPY ./packages/tsconfig.base.json ./packages/tsconfig.base.json
25
24
 
26
25
  # Copy workspace package.json files for dependency resolution
27
26
  COPY ./packages/xchain-monitor/package.json ./packages/xchain-monitor/
@@ -35,7 +34,7 @@ COPY ./packages/prettier-config/package.json ./packages/prettier-config/
35
34
  COPY ./protocol/package.json ./protocol/
36
35
 
37
36
  # Install dependencies (cached unless package.json files change)
38
- RUN yarn install && yarn cache clean
37
+ RUN bun install && bun pm cache rm
39
38
 
40
39
  # Copy remaining source code (only packages needed for build)
41
40
  COPY ./protocol ./protocol
@@ -46,7 +45,7 @@ COPY ./packages/web3 ./packages/web3
46
45
  COPY ./packages/utils ./packages/utils
47
46
  COPY ./packages/xchain-monitor ./packages/xchain-monitor
48
47
 
49
- RUN yarn run turbo build --filter @towns-protocol/xchain-monitor...
48
+ RUN bun run turbo build --filter @towns-protocol/xchain-monitor...
50
49
 
51
50
  # create runner image with only the necessary files
52
51
  FROM node:lts-alpine3.20 AS runner
@@ -55,8 +54,8 @@ COPY --from=builder /river/packages/xchain-monitor/dist /river/packages/xchain-m
55
54
 
56
55
  # install dd-trace again (because the bundler excludes some of the sub-dependencies)
57
56
  WORKDIR /river/packages/xchain-monitor
58
- RUN yarn init --yes
59
- RUN yarn add dd-trace@^5.19.0 && yarn cache clean
57
+ RUN npm init --yes
58
+ RUN npm install dd-trace@^5.19.0 && npm cache clean --force
60
59
 
61
60
  # run the service
62
61
  ARG GIT_SHA
package/README.md CHANGED
@@ -10,5 +10,5 @@ to use viem's default provider as it frequently 503s.)
10
10
  To start the service, run
11
11
 
12
12
  ```
13
- yarn dev
13
+ bun run dev
14
14
  ```