fix dockerfile, clean up logging.
This commit is contained in:
parent
f007bb7cdd
commit
1303376355
2 changed files with 5 additions and 11 deletions
|
|
@ -8,6 +8,8 @@ RUN npm ci --ignore-scripts
|
||||||
|
|
||||||
COPY build.js ./
|
COPY build.js ./
|
||||||
COPY src/ ./src/
|
COPY src/ ./src/
|
||||||
|
COPY plugin/src/ ./plugin/src/
|
||||||
|
COPY server/plugins/ ./server/plugins/
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
@ -29,6 +31,8 @@ COPY scripts/ ./scripts/
|
||||||
COPY images/ ./images/
|
COPY images/ ./images/
|
||||||
COPY plugin/ ./plugin/
|
COPY plugin/ ./plugin/
|
||||||
COPY --from=build /build/dist ./dist
|
COPY --from=build /build/dist ./dist
|
||||||
|
COPY --from=build /build/plugin/main.js ./plugin/main.js
|
||||||
|
COPY --from=build /build/server/plugins/headless-sync/plugin/main.js ./server/plugins/headless-sync/plugin/main.js
|
||||||
|
|
||||||
RUN chmod +x /app/scripts/entrypoint.sh
|
RUN chmod +x /app/scripts/entrypoint.sh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,17 +28,7 @@ export function applyReadTransform(path, data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const result = fn(data);
|
return fn(data);
|
||||||
|
|
||||||
if (result !== data) {
|
|
||||||
const before = typeof data === "string" ? data : new TextDecoder().decode(data);
|
|
||||||
const after = typeof result === "string" ? result : new TextDecoder().decode(result);
|
|
||||||
console.log(`[shim:fs] Read transform applied: ${norm}`);
|
|
||||||
console.log(`[shim:fs] before:`, before);
|
|
||||||
console.log(`[shim:fs] after:`, after);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
} catch {
|
} catch {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue