Stop compiling the toolkit by hand; it arrives compiled now

This commit is contained in:
2026-09-14 11:05:57 +02:00
parent b6fa6575c1
commit 42b2f9cca0
2 changed files with 5 additions and 8 deletions
+4 -7
View File
@@ -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
+1 -1
View File
@@ -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": {