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
6 changes: 3 additions & 3 deletions .workflows/.build/packages/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ COPY tests/ ./tests/
# Install dependencies
RUN pnpm install --frozen-lockfile

# Build all packages (must run before tests so workspace deps are compiled)
RUN pnpm run build

# Run Biome check (lint + format)
RUN pnpm check

# Run unit tests
RUN pnpm --recursive --if-present --filter='./packages/**' run test:unit

# Build all packages
RUN pnpm run build
8 changes: 6 additions & 2 deletions .workflows/.dev/packages/api/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
# ==============================================================================
# Start API Server
# ==============================================================================
# Starts the API development server with hot reload
# Starts the API development server with hot reload.
# Builds workspace dependencies first (tsc --build follows project references).
# ==============================================================================
set -e

echo "Starting API dev server..."
echo "Building workspace dependencies..."
cd /workspace/packages/api
pnpm run build

echo "Starting API dev server..."
exec pnpm --filter="@arrhes/application-api" dev
3 changes: 2 additions & 1 deletion packages/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
}
},
"exclude": ["./node_modules", "./build"],
"include": ["./src"]
"include": ["./src"],
"references": [{ "path": "../metadata" }]
}
25 changes: 13 additions & 12 deletions packages/metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type": "module",
"private": true,
"scripts": {
"build": "tsc --build",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
Expand All @@ -16,28 +17,28 @@
},
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"./models": {
"types": "./src/models/index.ts",
"default": "./src/models/index.ts"
"types": "./build/models/index.d.ts",
"default": "./build/models/index.js"
},
"./components": {
"types": "./src/components/index.ts",
"default": "./src/components/index.ts"
"types": "./build/components/index.d.ts",
"default": "./build/components/index.js"
},
"./schemas": {
"types": "./src/schemas/index.ts",
"default": "./src/schemas/index.ts"
"types": "./build/schemas/index.d.ts",
"default": "./build/schemas/index.js"
},
"./routes": {
"types": "./src/routes/index.ts",
"default": "./src/routes/index.ts"
"types": "./build/routes/index.d.ts",
"default": "./build/routes/index.js"
},
"./utilities": {
"types": "./src/utilities/index.ts",
"default": "./src/utilities/index.ts"
"types": "./build/utilities/index.d.ts",
"default": "./build/utilities/index.js"
}
}
}
4 changes: 3 additions & 1 deletion packages/metadata/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"isolatedModules": true,
"composite": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noEmit": true,
"rootDir": "./src",
"outDir": "./build",
"paths": {
"#/*": ["./src/*"]
}
Expand Down
Loading