Fail loud on a null package.json and a stray plugins/package.json
CI / full-gate (push) Successful in 2m42s

This commit is contained in:
lilleman
2026-08-17 22:50:29 +02:00
parent 616040fda6
commit 77343e859a
5 changed files with 23 additions and 19 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ FROM node:24.19.0-alpine3.24
COPY package.json package-lock.json .npmrc /deps/
RUN cd /deps && npm ci && mv node_modules /node_modules && rm -rf /deps
# The barrel as a package, so a plugin folder can own a package.json. Linked, not copied — it
# re-exports source under /app.
# The barrel as a package, so a plugin folder can own a package.json. Linked because it re-exports /app.
RUN mkdir -p /node_modules/@plainpages && ln -s /app/plugin-api /node_modules/@plainpages/plugin-api
WORKDIR /app