mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
fix dockerfile, clean up logging.
This commit is contained in:
@@ -8,6 +8,8 @@ RUN npm ci --ignore-scripts
|
||||
|
||||
COPY build.js ./
|
||||
COPY src/ ./src/
|
||||
COPY plugin/src/ ./plugin/src/
|
||||
COPY server/plugins/ ./server/plugins/
|
||||
|
||||
RUN npm run build
|
||||
|
||||
@@ -29,6 +31,8 @@ COPY scripts/ ./scripts/
|
||||
COPY images/ ./images/
|
||||
COPY plugin/ ./plugin/
|
||||
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
|
||||
|
||||
|
||||
@@ -28,17 +28,7 @@ export function applyReadTransform(path, data) {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = 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;
|
||||
return fn(data);
|
||||
} catch {
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user