Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/large-carpets-arrive.md

This file was deleted.

8 changes: 8 additions & 0 deletions apps/content-proxy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @reafrac/content-proxy

## 0.3.2

### Patch Changes

- Updated dependencies [1e806bb]
- @reafrac/logger@1.0.0
- @reafrac/external-script@2.1.1

## 0.3.1

### Patch Changes
Expand Down
4 changes: 3 additions & 1 deletion apps/content-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY apps/content-proxy/package.json ./apps/content-proxy/
COPY packages/database/package.json ./packages/database/
COPY packages/feed-utils/package.json ./packages/feed-utils/
COPY packages/external-script/package.json ./packages/external-script/
COPY packages/logger/package.json ./packages/logger/

# Install dependencies (including devDependencies for build)
RUN bun install --linker isolated --frozen-lockfile --filter '!@reafrac/web'
Expand All @@ -27,12 +28,13 @@ COPY apps/content-proxy/ ./apps/content-proxy/
COPY packages/database/ ./packages/database/
COPY packages/feed-utils/ ./packages/feed-utils/
COPY packages/external-script/ ./packages/external-script/
COPY packages/logger/ ./packages/logger/

# Build application with version injection
ARG BUILD_VERSION
ARG BUILD_DATE
ENV NODE_ENV=production
RUN bun run build --filter=@reafrac/content-proxy --filter=@reafrac/feed-utils --filter=@reafrac/external-script
RUN bun run build --filter=@reafrac/content-proxy --filter=@reafrac/feed-utils --filter=@reafrac/external-script --filter=@reafrac/logger

# Stage 2: Production stage - using debug variant for HEALTHCHECK support
FROM alpine:3
Expand Down
2 changes: 1 addition & 1 deletion apps/content-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reafrac/content-proxy",
"version": "0.3.1",
"version": "0.3.2",
"type": "module",
"module": "src/index.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions apps/feed-updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @reafrac/feed-updater

## 0.0.6

### Patch Changes

- @reafrac/external-script@2.1.1

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/feed-updater/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reafrac/feed-updater",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"type": "module",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions apps/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @reafrac/web

## 2.1.1

### Patch Changes

- Updated dependencies [1e806bb]
- @reafrac/logger@1.0.0
- @reafrac/external-script@2.1.1

## 2.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reafrac/web",
"version": "2.1.0",
"version": "2.1.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/external-script/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @reafrac/external-script

## 2.1.1

### Patch Changes

- Updated dependencies [1e806bb]
- @reafrac/logger@1.0.0

## 2.1.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/external-script/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reafrac/external-script",
"version": "2.1.0",
"version": "2.1.1",
"private": true,
"type": "module",
"main": "./src/index.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @reafrac/logger

## 1.0.0

### Major Changes

- 1e806bb: add centralize logging package shared accross the apps
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reafrac/logger",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "./src/index.ts",
Expand Down
22 changes: 13 additions & 9 deletions packages/logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@ function createPinoOptions(options: CreateLoggerOptions): LoggerOptions {
};

if (pretty) {
pinoOptions.transport = {
target: 'pino-pretty',
options: {
colorize: true,
translateTime: 'SYS:standard',
ignore: 'pid,hostname',
singleLine: false
}
};
try {
pinoOptions.transport = {
target: 'pino-pretty',
options: {
colorize: true,
translateTime: 'SYS:standard',
ignore: 'pid,hostname',
singleLine: false
}
};
} catch {
// pino-pretty not available (compiled binary), use JSON output
}
}

return pinoOptions;
Expand Down
Loading