From 42b2f9cca08fd4793dd5d638b8185a77edf492fe Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 14 Sep 2026 11:05:57 +0200 Subject: [PATCH] Stop compiling the toolkit by hand; it arrives compiled now --- Dockerfile | 11 ++++------- package.json | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9e330b..c0861cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,13 +23,10 @@ WORKDIR /app COPY package.json package-lock.json ./ # Development dependencies included: the compiler is one, and so is the toolkit's own. RUN npm install --no-audit --no-fund -# **And then compile the toolkit, because npm did not.** It declares a `prepare` script, the hook a -# package manager is supposed to run after installing from git, and this one does not run it — so -# the package arrives as sources with every entry point pointing at a compiled directory that is not -# there. Done explicitly rather than relying on a hook firing, which would break the day it stopped. -RUN npm --prefix node_modules/@novox/mesh-sdk install --no-audit --no-fund \ - && npm --prefix node_modules/@novox/mesh-sdk run build \ - && npm --prefix node_modules/@novox/mesh-sdk prune --omit=dev +# The toolkit arrives compiled. It used to arrive as sources, and this compiled it by hand — the +# hook that builds it on install was running all along, and the result was then packed out of the +# package, because with no explicit file list npm falls back to .gitignore and that ignores the +# build output. Fixed where it belonged, in the toolkit. COPY tsconfig.json ./ COPY src ./src RUN npm run build diff --git a/package.json b/package.json index 7ae2a5a..720a4b4 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "node --test --experimental-strip-types 'test/*.test.ts'" }, "dependencies": { - "@novox/mesh-sdk": "git+https://git.novox.be/novox/mesh-sdk.git#a1ed33b", + "@novox/mesh-sdk": "git+https://git.novox.be/novox/mesh-sdk.git#9213336", "amqplib": "^0.10.9" }, "devDependencies": { -- 2.54.0