@towns-protocol/xchain-monitor 0.0.431 → 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.
@@ -11,4 +11,4 @@ $ bun ./esbuild.config.mjs
11
11
  dist/pino-pretty.cjs.map 203.6kb
12
12
  dist/thread-stream-worker.cjs.map 12.0kb
13
13
 
14
- ⚡ Done in 1217ms
14
+ ⚡ Done in 1239ms
package/Dockerfile CHANGED
@@ -8,6 +8,11 @@ RUN apt-get update && \
8
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 (needed for npm pack in @towns-protocol/generated build)
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
+
11
16
  # Install Bun
12
17
  RUN curl -fsSL https://bun.sh/install | bash && \
13
18
  ln -s /root/.bun/bin/bun /usr/local/bin/bun && \
@@ -43,14 +48,14 @@ COPY ./packages/xchain-monitor ./packages/xchain-monitor
43
48
  RUN bun run turbo build --filter @towns-protocol/xchain-monitor...
44
49
 
45
50
  # create runner image with only the necessary files
46
- FROM oven/bun:1.3-alpine AS runner
51
+ FROM node:lts-alpine3.20 AS runner
47
52
 
48
53
  COPY --from=builder /river/packages/xchain-monitor/dist /river/packages/xchain-monitor/dist
49
54
 
50
55
  # install dd-trace again (because the bundler excludes some of the sub-dependencies)
51
56
  WORKDIR /river/packages/xchain-monitor
52
- RUN bun init --yes
53
- RUN bun add dd-trace@^5.19.0 && bun pm cache rm
57
+ RUN npm init --yes
58
+ RUN npm install dd-trace@^5.19.0 && npm cache clean --force
54
59
 
55
60
  # run the service
56
61
  ARG GIT_SHA
@@ -59,4 +64,4 @@ ENV DD_GIT_REPOSITORY_URL="https://github.com/towns-protocol/towns" \
59
64
  DD_GIT_COMMIT_SHA=${GIT_SHA} \
60
65
  NODE_ENV=production
61
66
 
62
- CMD ["bun", "./dist/node_esbuild.cjs"]
67
+ CMD ["node", "--enable-source-maps", "--max-old-space-size=4096", "./dist/node_esbuild.cjs"]
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
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towns-protocol/xchain-monitor",
3
- "version": "0.0.431",
3
+ "version": "0.0.432",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -9,8 +9,8 @@
9
9
  "dev": "bun run tsx src/index.ts"
10
10
  },
11
11
  "dependencies": {
12
- "@towns-protocol/generated": "^0.0.431",
13
- "@towns-protocol/web3": "^0.0.431",
12
+ "@towns-protocol/generated": "^0.0.432",
13
+ "@towns-protocol/web3": "^0.0.432",
14
14
  "dotenv": "^17.2.3",
15
15
  "esbuild-plugin-pino": "^2.2.0",
16
16
  "pino": "^9.0.0",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "02cd0a82c6fe5e92ce21456e2aa910978b46a1bf"
31
+ "gitHead": "aed1393cc61f669c852b2d244630e27ae27a5922"
32
32
  }